You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having issues using Jasmines clock mock with Karma.
I have reported the issue to Jasmine here but since the issue is only present with Karma I report it here instead.
The following test does not work with Karma in IE 8.
describe('Clock', function() {
beforeEach(function() {
jasmine.clock().install();
});
afterEach(function() {
jasmine.clock().uninstall();
});
it('works in IE 8', function() {
var test = jasmine.createSpy('timeout');
setTimeout(test, 1000);
jasmine.clock().tick(1000);
expect(test).toHaveBeenCalled();
});
});
It works with Jasmines SpecRunner.html.
I have done some experimenting and I can break Jasmines clock mock in IE 8 by calling setTimeout() before the first use of the mock.
The text was updated successfully, but these errors were encountered:
Hi
I'm having issues using Jasmines clock mock with Karma.
I have reported the issue to Jasmine here but since the issue is only present with Karma I report it here instead.
The following test does not work with Karma in IE 8.
It works with Jasmines SpecRunner.html.
I have done some experimenting and I can break Jasmines clock mock in IE 8 by calling
setTimeout()
before the first use of the mock.The text was updated successfully, but these errors were encountered: