2021-09-20 02:32:41 -05:00
|
|
|
/////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
|
|
//
|
2023-01-02 00:23:55 -06:00
|
|
|
// Copyright (C) 2013 - 2023, The pgAdmin Development Team
|
2021-09-20 02:32:41 -05:00
|
|
|
// This software is released under the PostgreSQL Licence
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////
|
|
|
|
|
2023-10-23 07:13:17 -05:00
|
|
|
|
2021-09-20 02:32:41 -05:00
|
|
|
import BaseUISchema from 'sources/SchemaView/base_schema.ui';
|
|
|
|
import GrantWizardPrivilegeSchema from '../../../pgadmin/tools/grant_wizard/static/js/privilege_schema.ui';
|
2023-10-23 07:13:17 -05:00
|
|
|
import {genericBeforeEach, getCreateView} from '../genericFunctions';
|
2021-09-20 02:32:41 -05:00
|
|
|
|
|
|
|
class MockSchema extends BaseUISchema {
|
|
|
|
get baseFields() {
|
|
|
|
return [];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
describe('GrantWizard', () => {
|
2023-10-23 07:13:17 -05:00
|
|
|
|
2021-09-20 02:32:41 -05:00
|
|
|
let schemaObj = new GrantWizardPrivilegeSchema(
|
|
|
|
() => new MockSchema(),
|
|
|
|
);
|
|
|
|
|
|
|
|
beforeEach(() => {
|
2022-01-28 05:50:34 -06:00
|
|
|
genericBeforeEach();
|
2021-09-20 02:32:41 -05:00
|
|
|
});
|
|
|
|
|
2023-10-23 07:13:17 -05:00
|
|
|
it('create', async () => {
|
|
|
|
await getCreateView(schemaObj);
|
2021-09-20 02:32:41 -05:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|