Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: improve code coverage in timers fix typo
  • Loading branch information
juanarbol committed Feb 26, 2019
commit a8b3a1768c4b6f1df80341b1add66775e4bebb4a
4 changes: 2 additions & 2 deletions test/parallel/test-timers-refresh.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ const { setUnrefTimeout } = require('internal/timers');

// should throw with non-functions
{
const expedtedError = {
const expectedError = {
code: 'ERR_INVALID_CALLBACK',
message: 'Callback must be a function'
};

[null, true, false, 0, 1, NaN, '', 'foo', {}, Symbol()].forEach((cb) => {
common.expectsError(() => setUnrefTimeout(cb),
expedtedError);
expectedError);
});
}

Expand Down