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