Skip to content

Commit 615258e

Browse files
committed
test: add cases for --web-socket-server-type
1 parent 2e4564c commit 615258e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

test/cli/webSocketServer-option.test.js

+22
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,26 @@ describe('"webSocketServer" CLI option', () => {
2525

2626
expect(exitCode).toEqual(0);
2727
});
28+
29+
it('should work using "--web-socket-server-type ws"', async () => {
30+
const { exitCode } = await testBin([
31+
"--port",
32+
port,
33+
"--web-socket-server-type",
34+
"ws",
35+
]);
36+
37+
expect(exitCode).toEqual(0);
38+
});
39+
40+
it('should work using "--web-socket-server-type sockjs"', async () => {
41+
const { exitCode } = await testBin([
42+
"--port",
43+
port,
44+
"--web-socket-server-type",
45+
"sockjs",
46+
]);
47+
48+
expect(exitCode).toEqual(0);
49+
});
2850
});

0 commit comments

Comments
 (0)