mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
feat(cli): update to TypeScript 4.8 (#15064)
This commit is contained in:
parent
79aee3668d
commit
73e89844ba
21 changed files with 9863 additions and 5280 deletions
|
@ -1214,7 +1214,9 @@ Deno.test(
|
|||
async function client() {
|
||||
const socket = new WebSocket(`ws://${hostname}:${port}/`);
|
||||
socket.onopen = () => socket.send("bla bla");
|
||||
const { data } = await new Promise((res) => socket.onmessage = res);
|
||||
const { data } = await new Promise<MessageEvent<string>>((res) =>
|
||||
socket.onmessage = res
|
||||
);
|
||||
assertStrictEquals(data, "bla bla");
|
||||
socket.close();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue