Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arielweinberger committed May 10, 2020
1 parent 322c9a8 commit 74f87f7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/fake-timers-test.js
Expand Up @@ -4605,3 +4605,16 @@ describe("#276 - remove config.target", function() {
}, /config.target is no longer supported/);
});
});

describe("issue #315 - praseInt if delay not a number", function() {
it("should successfully execute the timer", function() {
var clock = FakeTimers.install();
var stub1 = sinon.stub();

clock.setTimeout(stub1, "1");
clock.tick(1);
assert(stub1.calledOnce);

clock.uninstall();
});
});

0 comments on commit 74f87f7

Please sign in to comment.