From cd45d74593be411eba39481e5a8360c39079b118 Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Wed, 11 Dec 2019 14:20:42 +0000 Subject: [PATCH] test: fix fork test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I accidently dropped the part of the test that checks that the script correctly started 😱 --- test/fork/run.test.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/fork/run.test.js b/test/fork/run.test.js index 04c2023c..55e82dab 100644 --- a/test/fork/run.test.js +++ b/test/fork/run.test.js @@ -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) {