File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 23
23
"test" : " npm run lint && npm run unit && npm run integration" ,
24
24
"unit" : " npx mocha './src/*-unit.js' --reporter spec --require babel-register --require babel-polyfill testutils.js" ,
25
25
"integration" : " npm run integration-ws && npm run integration-node" ,
26
- "integration-node" : " NODE_TLS_REJECT_UNAUTHORIZED=0 npx mocha './test/node/node-integration.js' --reporter spec -- require babel-register --require babel-polyfill testutils.js" ,
26
+ "integration-node" : " NODE_TLS_REJECT_UNAUTHORIZED=0 npx mocha './test/node/node-integration.js' --require testutils.js" ,
27
27
"integration-ws" : " npm run build && npx webpack --config webpack.config.test.js -p && npx wdio wdio.conf.js" ,
28
28
"integration-chrome" : " npm run build && cp node_modules/chai/chai.js node_modules/mocha/mocha.js node_modules/mocha/mocha.css test/chrome/ && npx webpack --config webpack.config.chrome.js && npx babel-node test/chrome/run.js"
29
29
},
Original file line number Diff line number Diff line change 1
- import echo from '../echo'
2
- import TCPSocket from '../../'
3
- import { PORT_NET , PORT_STARTTLS , PORT_TLS } from '../constants'
1
+ const echo = require ( '../echo' )
2
+ const TCPSocket = require ( '../../' ) . default
3
+ const { PORT_NET , PORT_STARTTLS , PORT_TLS } = require ( '../constants' )
4
4
5
5
const { startServers, stopServers } = echo ( )
6
6
Original file line number Diff line number Diff line change 1
- import { expect } from 'chai'
2
- import sinon from 'sinon'
1
+ const { expect } = require ( 'chai' )
2
+ const sinon = require ( 'sinon' )
3
3
4
4
global . expect = expect
5
5
global . sinon = sinon
You can’t perform that action at this time.
0 commit comments