Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/add_ws' into add_ws
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed May 24, 2021
2 parents 7f9b138 + c9a5f25 commit d4b0bdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ws/test/index.test.ts
Expand Up @@ -8,6 +8,7 @@ describe('/test/index.test.ts', () => {
const app = await createServer('base-app', { port: 3000});
const client = await createWebSocketClient(`ws://localhost:3000`);

client.send(1);
let gotEvent = once(client, 'message');
let [data] = await gotEvent;
expect(JSON.parse(data)).toEqual({
Expand All @@ -16,7 +17,6 @@ describe('/test/index.test.ts', () => {
});

client.send(2);

gotEvent = once(client, 'message');
[data] = await gotEvent;
expect(JSON.parse(data)).toEqual({
Expand Down

0 comments on commit d4b0bdf

Please sign in to comment.