Skip to content

Commit 8ffbe09

Browse files
committed
chore: nit
1 parent d151b0a commit 8ffbe09

File tree

1 file changed

+4
-6
lines changed
  • tests/manual/websocket/main/test/e2e

1 file changed

+4
-6
lines changed

tests/manual/websocket/main/test/e2e/ws.e2e.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,17 @@ const chai = require('chai')
1212
const chaiHttp = require('chai-http')
1313
const 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-
2115
const { expect } = chai
2216
const { now } = Date
2317
const { parse, stringify } = JSON
2418
const { keys } = Object
2519

2620
chai.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+
2826
describe('serverless', () => {
2927
describe('with WebSocket support', () => {
3028
let clients = []

0 commit comments

Comments
 (0)