Fixed jasmine test cases.

This commit is contained in:
Pradip Parkale
2021-09-21 17:42:18 +05:30
committed by Akshay Joshi
parent 6b100b60f8
commit 7330b3520f
4 changed files with 9 additions and 18 deletions

View File

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

View File

@@ -55,10 +55,6 @@ describe('PartitionKeysSchema', ()=>{
spyOn(nodeAjax, 'getNodeAjaxOptions').and.returnValue(Promise.resolve([]));
spyOn(nodeAjax, 'getNodeListByName').and.returnValue(Promise.resolve([]));
let partitionObj = new PartitionKeysSchema();
partitionObj.top = {
getCollations : ()=>{},
getOperatorClass : ()=>{},
};
schemaObj = new SchemaInColl(partitionObj);
});
@@ -171,8 +167,6 @@ 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(() => {