Skip to content

Commit

Permalink
fix: case
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed May 22, 2021
1 parent 8679069 commit c9a5f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ws/test/index.test.ts
Original file line number Diff line number Diff line change
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 c9a5f25

Please sign in to comment.