2017-05-12 12:10:46 +01:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
|
|
//
|
2024-01-01 14:13:48 +05:30
|
|
|
// Copyright (C) 2013 - 2024, The pgAdmin Development Team
|
2017-05-12 12:10:46 +01:00
|
|
|
// This software is released under the PostgreSQL Licence
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2023-10-23 17:43:17 +05:30
|
|
|
import checkNodeVisibility from '../../pgadmin/static/js/check_node_visibility';
|
2017-05-12 12:10:46 +01:00
|
|
|
|
2023-10-23 17:43:17 +05:30
|
|
|
describe('checkNodeVisibility', function () {
|
|
|
|
let browser;
|
2017-05-12 12:10:46 +01:00
|
|
|
|
2023-10-23 17:43:17 +05:30
|
|
|
describe('when node is server collection', function () {
|
|
|
|
it('returns true', function () {
|
|
|
|
expect(checkNodeVisibility(browser, 'coll-server')).toEqual(true);
|
|
|
|
});
|
|
|
|
});
|
2017-05-12 12:10:46 +01:00
|
|
|
|
2023-10-23 17:43:17 +05:30
|
|
|
describe('when node is server', function () {
|
|
|
|
it('returns true', function () {
|
|
|
|
expect(checkNodeVisibility(browser, 'server')).toEqual(true);
|
2017-05-12 12:10:46 +01:00
|
|
|
});
|
|
|
|
});
|
2023-10-23 17:43:17 +05:30
|
|
|
});
|