mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Implement new PostgreSQL 15 features in publication dialog and SQL. #5868
This commit is contained in:
@@ -16,7 +16,9 @@ describe('PublicationSchema', ()=>{
|
||||
let mount;
|
||||
let schemaObj = new PublicationSchema(
|
||||
{
|
||||
publicationTable: ()=>[],
|
||||
allTables: ()=>[],
|
||||
allSchemas:()=>[],
|
||||
getColumns: ()=>[],
|
||||
role: ()=>[],
|
||||
},
|
||||
{
|
||||
@@ -69,5 +71,11 @@ describe('PublicationSchema', ()=>{
|
||||
expect(status).toBe(true);
|
||||
});
|
||||
|
||||
it('pubschema disabled', ()=>{
|
||||
let disabled = _.find(schemaObj.fields, (f)=>f.id=='pubschema').disabled;
|
||||
let status = disabled({pubtable: [],all_table: true});
|
||||
expect(status).toBe(true);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user