Skip to content

Commit

Permalink
Fix assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsograziano committed Feb 9, 2024
1 parent 15f5d35 commit 6c70938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/a11-timers/test/solution.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test('delayedHello executes the callback after the specified delay', () => {
mock.timers.tick(5000)
// Now, the callback should have been called once
assert.strictEqual(fn.mock.calls.length, 1)
assert.strictEqual(fn.mock.calls[0][0], 'Hello, World!')
assert.strictEqual(fn.mock.calls[0].arguments[0], 'Hello, World!')

mock.timers.reset()
})

0 comments on commit 6c70938

Please sign in to comment.