mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-21 16:27:39 -06:00
27 lines
808 B
JavaScript
27 lines
808 B
JavaScript
//////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
//
|
|
// Copyright (C) 2013 - 2024, The pgAdmin Development Team
|
|
// This software is released under the PostgreSQL Licence
|
|
//
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
import checkNodeVisibility from '../../pgadmin/static/js/check_node_visibility';
|
|
|
|
describe('checkNodeVisibility', function () {
|
|
let browser;
|
|
|
|
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);
|
|
});
|
|
});
|
|
});
|