Skip to content

Commit

Permalink
Update test.js
Browse files Browse the repository at this point in the history
Co-Authored-By: Sindre Sorhus <sindresorhus@gmail.com>
  • Loading branch information
ehmicky and sindresorhus committed Jun 11, 2019
1 parent 19ae036 commit 40b59b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test.js
Expand Up @@ -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 => {
Expand Down

0 comments on commit 40b59b6

Please sign in to comment.