Browse Source

Fix test case

pull/24/head
afc163 9 years ago
parent
commit
77e1eddbc7
  1. 5
      tests/run-tests.js

5
tests/run-tests.js

@ -19,7 +19,10 @@ startServer.on('exit', () => {
// eslint-disable-next-line // eslint-disable-next-line
console.log('Starting development server for e2e tests...'); console.log('Starting development server for e2e tests...');
startServer.stdout.on('data', (data) => { startServer.stdout.on('data', (data) => {
if (data.toString().indexOf('The app is running at') >= 0) { // eslint-disable-next-line
console.log(data.toString());
if (data.toString().indexOf('The app is running at') >= 0 ||
data.toString().indexOf('Compiled with warnings') >= 0) {
// eslint-disable-next-line // eslint-disable-next-line
console.log('Development server is started, ready to run tests.'); console.log('Development server is started, ready to run tests.');
const testCmd = spawn('npm', ['test'], { const testCmd = spawn('npm', ['test'], {

Loading…
Cancel
Save