diff --git a/lib/assets/test/spec/dashboard/components/table-grants-view.spec.js b/lib/assets/test/spec/dashboard/components/table-grants-view.spec.js index 234018e22c..d37cddddb1 100644 --- a/lib/assets/test/spec/dashboard/components/table-grants-view.spec.js +++ b/lib/assets/test/spec/dashboard/components/table-grants-view.spec.js @@ -208,11 +208,6 @@ describe('dashboard/components/table-grants/table-grants-view', function () { describe('._onSearchChanged', function () { beforeEach(function () { view = createViewFn(); - jasmine.clock().install(); - }); - - afterEach(function() { - jasmine.clock().uninstall(); }); it('should call userTablesModel.setQuery', function () { @@ -225,9 +220,10 @@ describe('dashboard/components/table-grants/table-grants-view', function () { }; view._onSearchChanged(event); - jasmine.clock().tick(600); - expect(userTablesModel.setQuery).toHaveBeenCalledWith(event.target.value); + setTimeout(function() { + expect(userTablesModel.setQuery).toHaveBeenCalledWith(event.target.value); + }, 600); }); }); });