mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-22 08:46:39 -06:00
Fixed Jasmine test cases.
This commit is contained in:
parent
28892bb07f
commit
c57fc74e18
@ -407,9 +407,16 @@ export default class TableSchema extends BaseUISchema {
|
||||
readonly: this.inCatalog,
|
||||
},{
|
||||
id: 'spcname', label: gettext('Tablespace'),
|
||||
type: 'select', options: this.fieldOptions.spcname,
|
||||
|
||||
mode: ['properties', 'create', 'edit'], deps: ['is_partitioned'],
|
||||
readonly: this.inCatalog,
|
||||
readonly: this.inCatalog, type: (state)=>{
|
||||
return {
|
||||
type: 'select', options: this.fieldOptions.spcname,
|
||||
controlProps: {
|
||||
allowClear: obj.isNew(state) ? true : false,
|
||||
}
|
||||
};
|
||||
}
|
||||
},{
|
||||
id: 'partition', type: 'group', label: gettext('Partitions'),
|
||||
mode: ['edit', 'create'], min_version: 100000,
|
||||
|
@ -171,6 +171,7 @@ describe('TableSchema', ()=>{
|
||||
deferredPromise.then((depChange)=>{
|
||||
expect(depChange()).toEqual({
|
||||
columns: oftypeColumns,
|
||||
primary_key: [],
|
||||
});
|
||||
expect(schemaObj.changeColumnOptions).toHaveBeenCalledWith(oftypeColumns);
|
||||
done();
|
||||
@ -206,6 +207,7 @@ describe('TableSchema', ()=>{
|
||||
deferredPromise.then((depChange)=>{
|
||||
expect(depChange()).toEqual({
|
||||
columns: oftypeColumns,
|
||||
primary_key: [],
|
||||
});
|
||||
expect(schemaObj.changeColumnOptions).toHaveBeenCalledWith(oftypeColumns);
|
||||
done();
|
||||
|
Loading…
Reference in New Issue
Block a user