Fix tests (again)

pull/16378/head
cgonzalez 3 years ago
parent 4dce50c39b
commit f85a0f11bb

@ -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);
});
});
});

Loading…
Cancel
Save