mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed jasmine test cases introduced by the theme patch.
This commit is contained in:
committed by
Akshay Joshi
parent
ed59584fe4
commit
9c45a62b53
@@ -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>);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user