mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
1. Added USING method while creating the table. #6378
2. Added USING method while creating the materialized view. #6400
This commit is contained in:
@@ -40,6 +40,7 @@ describe('MaterializedViewSchema', ()=>{
|
||||
/* https://material-ui.com/guides/testing/#api */
|
||||
beforeAll(()=>{
|
||||
mount = createMount();
|
||||
spyOn(schemaObj, 'getServerVersion').and.returnValue(100000);
|
||||
});
|
||||
|
||||
afterAll(() => {
|
||||
@@ -68,7 +69,7 @@ describe('MaterializedViewSchema', ()=>{
|
||||
|
||||
state.definition = null;
|
||||
schemaObj.validate(state, setError);
|
||||
expect(setError).toHaveBeenCalledWith('definition', 'Please enter view definition.');
|
||||
expect(setError).toHaveBeenCalledWith('definition', 'Please enter view code.');
|
||||
|
||||
state.definition = 'SELECT 1;';
|
||||
schemaObj.validate(state, setError);
|
||||
|
||||
Reference in New Issue
Block a user