mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Initial re-vamp of the History tab.
This commit is contained in:
32
web/regression/javascript/check_node_visibility_spec.js
Normal file
32
web/regression/javascript/check_node_visibility_spec.js
Normal file
@@ -0,0 +1,32 @@
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// pgAdmin 4 - PostgreSQL Tools
|
||||
//
|
||||
// Copyright (C) 2013 - 2017, The pgAdmin Development Team
|
||||
// This software is released under the PostgreSQL Licence
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
define(['sources/check_node_visibility'],
|
||||
function (checkNodeVisibility) {
|
||||
describe('checkNodeVisibility', function () {
|
||||
|
||||
var browser;
|
||||
|
||||
browser = jasmine.createSpyObj('browser', [
|
||||
'node_preference_data', 'get_preference']
|
||||
);
|
||||
|
||||
describe('when node is server collection', function () {
|
||||
it('returns true', function () {
|
||||
expect(checkNodeVisibility(browser, 'coll-server')).toEqual(true);
|
||||
});
|
||||
});
|
||||
|
||||
describe('when node is server', function () {
|
||||
it('returns true', function () {
|
||||
expect(checkNodeVisibility(browser, 'server')).toEqual(true);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user