Compare commits

...

3 Commits

Author SHA1 Message Date
Nikhil Mandlik
c548c36f11 return promise on 'onSave' 2021-12-15 15:17:58 -08:00
Nikhil Mandlik
00d1e83faa test fix 2021-12-15 15:17:49 -08:00
Joshi
1a4a9b2fb7 Release 1.8.2 2021-12-13 13:31:48 -08:00
3 changed files with 11 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "openmct",
"version": "1.8.1",
"version": "1.8.2",
"description": "The Open MCT core platform",
"devDependencies": {
"@braintree/sanitize-url": "^5.0.2",

View File

@@ -15,7 +15,15 @@ describe("Transaction Class", () => {
return object;
},
refresh: (object) => Promise.resolve(object)
refresh: (object) => Promise.resolve(object),
areIdsEqual: (...identifiers) => {
return identifiers.map(utils.parseKeyString)
.every(identifier => {
return identifier === identifiers[0]
|| (identifier.namespace === identifiers[0].namespace
&& identifier.key === identifiers[0].key);
});
}
};
transaction = new Transaction(objectAPI);

View File

@@ -122,6 +122,7 @@ describe("The import JSON action", function () {
];
spyOn(openmct.forms, 'showForm').and.returnValue(Promise.resolve({}));
spyOn(importFromJSONAction, 'onSave').and.returnValue(Promise.resolve({}));
importFromJSONAction.invoke(objectPath);
expect(openmct.forms.showForm).toHaveBeenCalled();