Fixed bug where multiple calls to jasmine.Clock.useMock cause multiple tear downs

This commit is contained in:
Lee Byrd & Christian Williams
2010-06-23 11:03:05 -07:00
parent 6a9f74e849
commit 9c8180d8d0
4 changed files with 46 additions and 17 deletions

View File

@@ -31,4 +31,8 @@ describe("MockClock", function () {
expect(interval).toEqual(2);
});
});
it("shouldn't complain if you call jasmine.Clock.useMock() more than once", function() {
jasmine.Clock.useMock();
});
});