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')
12
12
const chaiHttp = require ( 'chai-http' )
13
13
const moment = require ( 'moment' )
14
14
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
-
21
15
const { expect } = chai
22
16
const { now } = Date
23
17
const { parse, stringify } = JSON
24
18
const { keys } = Object
25
19
26
20
chai . use ( chaiHttp )
27
21
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
+
28
26
describe ( 'serverless' , ( ) => {
29
27
describe ( 'with WebSocket support' , ( ) => {
30
28
let clients = [ ]
You can’t perform that action at this time.
0 commit comments