Update test.js

This commit is contained in:
Kiko Beats 2021-10-23 12:01:10 +02:00 committed by GitHub
parent ca733c36c4
commit e02474d5c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ test('throws when milliseconds is negative number', async t => {
});
test('throws when milliseconds is NaN', async t => {
await t.throwsAsync(pTimeout(delay(50), NaN), {instanceOf: TypeError});
await t.throwsAsync(pTimeout(delay(50), Number.NaN), {instanceOf: TypeError});
});
test('handles milliseconds being `Infinity`', async t => {