File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -204,6 +204,14 @@ describe("client option", () => {
204
204
webSocketServer : "sockjs" ,
205
205
shouldThrow : false ,
206
206
} ,
207
+ {
208
+ title : 'as a string ("ws")' ,
209
+ client : {
210
+ webSocketTransport : "ws" ,
211
+ } ,
212
+ webSocketServer : "ws" ,
213
+ shouldThrow : false ,
214
+ } ,
207
215
{
208
216
title : 'as a path ("sockjs")' ,
209
217
client : {
@@ -214,6 +222,16 @@ describe("client option", () => {
214
222
webSocketServer : "sockjs" ,
215
223
shouldThrow : false ,
216
224
} ,
225
+ {
226
+ title : 'as a path ("ws")' ,
227
+ client : {
228
+ webSocketTransport : require . resolve (
229
+ "../../client-src/clients/WebSocketClient"
230
+ ) ,
231
+ } ,
232
+ webSocketServer : "ws" ,
233
+ shouldThrow : false ,
234
+ } ,
217
235
{
218
236
title : "as a nonexistent path" ,
219
237
client : {
@@ -222,6 +240,14 @@ describe("client option", () => {
222
240
webSocketServer : "sockjs" ,
223
241
shouldThrow : true ,
224
242
} ,
243
+ {
244
+ title : "as a nonexistent path" ,
245
+ client : {
246
+ webSocketTransport : "/bad/path/to/implementation" ,
247
+ } ,
248
+ webSocketServer : "ws" ,
249
+ shouldThrow : true ,
250
+ } ,
225
251
] ;
226
252
227
253
describe ( "passed to server" , ( ) => {
You can’t perform that action at this time.
0 commit comments