Fixed jasmine test cases introduced by the theme patch.

This commit is contained in:
Aditya Toshniwal
2022-07-01 15:01:51 +05:30
committed by Akshay Joshi
parent ed59584fe4
commit 9c45a62b53
9 changed files with 261 additions and 220 deletions

View File

@@ -14,6 +14,7 @@ import SchemaView from '../../../pgadmin/static/js/SchemaView';
import BaseUISchema from 'sources/SchemaView/base_schema.ui';
import GrantWizardPrivilegeSchema from '../../../pgadmin/tools/grant_wizard/static/js/privilege_schema.ui';
import {genericBeforeEach} from '../genericFunctions';
import Theme from '../../../pgadmin/static/js/Theme';
class MockSchema extends BaseUISchema {
get baseFields() {
@@ -42,16 +43,18 @@ describe('GrantWizard', () => {
});
it('create', () => {
mount(<SchemaView
formType='dialog'
schema={schemaObj}
viewHelperProps={{
mode: 'create',
}}
onDataChange={() => {/*This is intentional (SonarQube)*/}}
showFooter={false}
isTabView={false}
/>);
mount(<Theme>
<SchemaView
formType='dialog'
schema={schemaObj}
viewHelperProps={{
mode: 'create',
}}
onDataChange={() => {/*This is intentional (SonarQube)*/}}
showFooter={false}
isTabView={false}
/>
</Theme>);
});
});