mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-22 08:46:39 -06:00
33 lines
973 B
JavaScript
33 lines
973 B
JavaScript
//////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// 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, pgBrowser) {
|
|
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);
|
|
});
|
|
});
|
|
});
|
|
});
|