diff --git a/src/plugins/newFolderAction/pluginSpec.js b/src/plugins/newFolderAction/pluginSpec.js index f2daf4a7fc..7e152633f2 100644 --- a/src/plugins/newFolderAction/pluginSpec.js +++ b/src/plugins/newFolderAction/pluginSpec.js @@ -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', () => {