Env no longer automatically uninstalls the clock after each spec
- Behaves more like how we want plugins to behave [#58281436]
This commit is contained in:
@@ -356,6 +356,7 @@ describe("Env integration", function() {
|
|||||||
env.clock.install();
|
env.clock.install();
|
||||||
env.clock.setTimeout(delayedFunctionForMockClock, 100);
|
env.clock.setTimeout(delayedFunctionForMockClock, 100);
|
||||||
env.clock.tick(100);
|
env.clock.tick(100);
|
||||||
|
env.clock.uninstall();
|
||||||
});
|
});
|
||||||
env.it("test without mock clock", function() {
|
env.it("test without mock clock", function() {
|
||||||
env.clock.setTimeout(delayedFunctionForGlobalClock, 100);
|
env.clock.setTimeout(delayedFunctionForGlobalClock, 100);
|
||||||
|
|||||||
@@ -170,7 +170,6 @@ getJasmineRequireObj().Env = function(j$) {
|
|||||||
removeAllSpies();
|
removeAllSpies();
|
||||||
j$.Expectation.resetMatchers();
|
j$.Expectation.resetMatchers();
|
||||||
customEqualityTesters.length = 0;
|
customEqualityTesters.length = 0;
|
||||||
self.clock.uninstall();
|
|
||||||
self.currentSpec = null;
|
self.currentSpec = null;
|
||||||
self.reporter.specDone(result);
|
self.reporter.specDone(result);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user