|
@@ -1,5 +1,5 @@
|
|
|
|
|
|
-import child_process from 'child_process';
|
|
|
|
|
|
+import { fork } from 'child_process';
|
|
import tape from 'tape';
|
|
import tape from 'tape';
|
|
import _test from 'tape-promise';
|
|
import _test from 'tape-promise';
|
|
import fetch from 'isomorphic-fetch';
|
|
import fetch from 'isomorphic-fetch';
|
|
@@ -9,7 +9,7 @@ const tapetest = _test(tape);
|
|
|
|
|
|
const serverhost = 'localhost',
|
|
const serverhost = 'localhost',
|
|
serverport = 2424,
|
|
serverport = 2424,
|
|
- server = child_process.fork('build/server.js');
|
|
|
|
|
|
+ server = fork('build/server.js');
|
|
|
|
|
|
tapetest('test server', async function testServer(assert) {
|
|
tapetest('test server', async function testServer(assert) {
|
|
let client;
|
|
let client;
|