We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2e6e77 commit c78d05fCopy full SHA for c78d05f
packages/auth/test/helpers/timeout_stub.ts
@@ -38,6 +38,8 @@ export function stubTimeouts(ids?: number[]): TimerMap {
38
sinon.stub(window, 'setTimeout').callsFake((cb: () => void, duration) => {
39
if (duration !== undefined) {
40
callbacks[duration] = cb;
41
+ } else {
42
+ callbacks[0] = cb;
43
}
44
// For some bizarre reason setTimeout always get shoehorned into NodeJS.Timeout,
45
// which is flat-wrong. This is the easiest way to fix it.
0 commit comments