Skip to content

Commit

Permalink
test: fix fork test
Browse files Browse the repository at this point in the history
I accidently dropped the part of the test that checks that the script
correctly started 馃槺
  • Loading branch information
remy committed Dec 11, 2019
1 parent 496c335 commit cd45d74
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/fork/run.test.js
Expand Up @@ -46,6 +46,14 @@ describe('nodemon fork', function () {
done(new Error(data));
}
});

p.on('message', function (event) {
if (event.type === 'start') {
p.send('quit');
assert(true, 'nodemon started');
done();
}
});
});

if (!process.env.TRAVIS) {
Expand Down

0 comments on commit cd45d74

Please sign in to comment.