Allow sorting when viewing/editing data. Fixes #1894

This commit is contained in:
Murtuza Zabuawala
2018-04-05 16:25:17 +01:00
committed by Dave Page
parent 659390493d
commit fa1854bd85
15 changed files with 894 additions and 194 deletions

View File

@@ -0,0 +1,31 @@
//////////////////////////////////////////////////////////////////////////
//
// pgAdmin 4 - PostgreSQL Tools
//
// Copyright (C) 2013 - 2018, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
//////////////////////////////////////////////////////////////////////////
import filterDialog from 'sources/sqleditor/filter_dialog';
import filterDialogModel from 'sources/sqleditor/filter_dialog_model';
describe('filterDialog', () => {
let sqlEditorController;
sqlEditorController = jasmine.createSpy('sqlEditorController')
describe('filterDialog', () => {
describe('when using filter dialog', () => {
beforeEach(() => {
spyOn(filterDialog, 'dialog');
});
it("it should be defined as function", function() {
expect(filterDialog.dialog).toBeDefined();
});
it('it should call without proper handler', () => {
expect(filterDialog.dialog).not.toHaveBeenCalledWith({});
});
});
});
});