update unit tests

This commit is contained in:
Deep Tailor 2020-09-15 09:46:17 -07:00
parent 09c4e610af
commit 81ed9169f1

View File

@ -79,7 +79,7 @@ describe("the plugin", () => {
spyOn(openmct.$injector, 'get').and.returnValue(mockDialogService);
spyOn(compositionAPI, 'get').and.returnValue(mockComposition);
spyOn(openmct.objects, 'mutate');
spyOn(openmct.objects, 'save');
newFolderAction.invoke(mockObjectPath);
});
@ -89,7 +89,7 @@ describe("the plugin", () => {
});
it('creates a new folder object', () => {
expect(openmct.objects.mutate).toHaveBeenCalled();
expect(openmct.objects.save).toHaveBeenCalled();
});
it('adds new folder object to parent composition', () => {