Merge pull request #450 from slackersoft/manualClockUninstall

Env no longer automatically uninstalls the clock after each spec
This commit is contained in:
Davis W. Frank
2013-10-18 15:51:10 -07:00
2 changed files with 1 additions and 1 deletions

View File

@@ -356,6 +356,7 @@ describe("Env integration", function() {
env.clock.install();
env.clock.setTimeout(delayedFunctionForMockClock, 100);
env.clock.tick(100);
env.clock.uninstall();
});
env.it("test without mock clock", function() {
env.clock.setTimeout(delayedFunctionForGlobalClock, 100);

View File

@@ -170,7 +170,6 @@ getJasmineRequireObj().Env = function(j$) {
removeAllSpies();
j$.Expectation.resetMatchers();
customEqualityTesters.length = 0;
self.clock.uninstall();
self.currentSpec = null;
self.reporter.specDone(result);
}