Fixed jasmine test cases.

This commit is contained in:
Pradip Parkale
2021-09-15 11:42:23 +05:30
committed by Akshay Joshi
parent 460c66ab3f
commit 89d40d38d9
3 changed files with 16 additions and 17 deletions

View File

@@ -46,6 +46,9 @@ describe('PartitionTableSchema', ()=>{
}
}
});
schemaObj.top = schemaObj;
schemaObj.top.getCollations = ()=>Promise.resolve({});
schemaObj.top.getOperatorClass = ()=>Promise.resolve({});
});
afterAll(() => {

View File

@@ -29,6 +29,8 @@ class SchemaInColl extends BaseUISchema {
this.collSchema = schemaObj;
this.columns = columns;
}
getCollations() {}
getOperatorClass() {}
get baseFields() {
return [{
@@ -52,7 +54,12 @@ describe('PartitionKeysSchema', ()=>{
mount = createMount();
spyOn(nodeAjax, 'getNodeAjaxOptions').and.returnValue(Promise.resolve([]));
spyOn(nodeAjax, 'getNodeListByName').and.returnValue(Promise.resolve([]));
schemaObj = new SchemaInColl(new PartitionKeysSchema());
let partitionObj = new PartitionKeysSchema();
partitionObj.top = {
getCollations : ()=>{},
getOperatorClass : ()=>{},
};
schemaObj = new SchemaInColl(partitionObj);
});
afterAll(() => {
@@ -164,6 +171,8 @@ describe('PartitionsSchema', ()=>{
spyOn(nodeAjax, 'getNodeListByName').and.returnValue(Promise.resolve([]));
schemaObj = new PartitionsSchema();
schemaObj.top = schemaObj;
schemaObj.top.getCollations = ()=>Promise.resolve({});
schemaObj.top.getOperatorClass = ()=>Promise.resolve({});
});
afterAll(() => {