diff --git a/test.js b/test.js index df8207c423..917337c445 100644 --- a/test.js +++ b/test.js @@ -177,7 +177,9 @@ if (process.platform !== 'win32') { }); test('.kill() `forceKillAfter` should not be a float', t => { - t.throws(() => execa('noop').kill('SIGTERM', {forceKillAfter: 0.5}), TypeError); + t.throws(() => { + execa('noop').kill('SIGTERM', {forceKillAfter: 0.5}); + }, TypeError); }); test('.kill() `forceKillAfter` should not be negative', t => {