File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
tests/manual/websocket/main/test/e2e Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -12,19 +12,17 @@ const chai = require('chai')
1212const chaiHttp = require ( 'chai-http' )
1313const moment = require ( 'moment' )
1414
15- const endpoint = env . npm_config_endpoint || 'ws://localhost:3001'
16- const timeout = env . npm_config_timeout
17- ? parseInt ( env . npm_config_timeout , 10 )
18- : 1000
19- const WebSocketTester = require ( '../support/WebSocketTester.js' )
20-
2115const { expect } = chai
2216const { now } = Date
2317const { parse, stringify } = JSON
2418const { keys } = Object
2519
2620chai . use ( chaiHttp )
2721
22+ const endpoint = env . npm_config_endpoint ?? 'ws://localhost:3001'
23+ const timeout = env . npm_config_timeout ? + env . npm_config_timeout : 1000
24+ const WebSocketTester = require ( '../support/WebSocketTester.js' )
25+
2826describe ( 'serverless' , ( ) => {
2927 describe ( 'with WebSocket support' , ( ) => {
3028 let clients = [ ]
You can’t perform that action at this time.
0 commit comments