Commit f3d37980 authored by Phil Hughes's avatar Phil Hughes

fixed karma spec

parent 730e3541
......@@ -292,6 +292,8 @@ describe('IDE clientside preview', () => {
describe('update', () => {
beforeEach(() => {
jasmine.clock().install();
vm.sandpackReady = true;
vm.manager.updatePreview = jasmine.createSpy('updatePreview');
vm.manager.listener = jasmine.createSpy('updatePreview');
});
......@@ -306,7 +308,7 @@ describe('IDE clientside preview', () => {
vm.update();
jasmine.clock().tick(500);
jasmine.clock().tick(250);
expect(vm.initPreview).toHaveBeenCalled();
});
......@@ -314,7 +316,7 @@ describe('IDE clientside preview', () => {
it('calls updatePreview', () => {
vm.update();
jasmine.clock().tick(500);
jasmine.clock().tick(250);
expect(vm.manager.updatePreview).toHaveBeenCalledWith(vm.sandboxOpts);
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment