test: fix fork test

I accidently dropped the part of the test that checks that the script
correctly started 😱
This commit is contained in:
Remy Sharp
2019-12-11 14:20:42 +00:00
parent 496c3353c4
commit cd45d74593

View File

@@ -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) {