diff --git a/test.js b/test.js index 2e28515..3b508c2 100644 --- a/test.js +++ b/test.js @@ -215,7 +215,15 @@ test('handle negative millisecond values', t => { }); test('errors', t => { - t.throws(() => parseMilliseconds('string')); - t.throws(() => parseMilliseconds(Number.NaN)); - t.throws(() => parseMilliseconds(Number.POSITIVE_INFINITY)); + t.throws(() => { + parseMilliseconds('string'); + }); + + t.throws(() => { + parseMilliseconds(Number.NaN); + }); + + t.throws(() => { + parseMilliseconds(Number.POSITIVE_INFINITY); + }); });