From 40b59b6e15cfa3fd7a1e28f59e8f0ee53a479d50 Mon Sep 17 00:00:00 2001 From: ehmicky Date: Tue, 11 Jun 2019 11:01:04 -0700 Subject: [PATCH] Update test.js Co-Authored-By: Sindre Sorhus --- test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 => {