mirror of
https://github.com/nasa/openmct.git
synced 2025-05-08 11:38:35 +00:00
update unit tests
This commit is contained in:
parent
09c4e610af
commit
81ed9169f1
@ -79,7 +79,7 @@ describe("the plugin", () => {
|
|||||||
|
|
||||||
spyOn(openmct.$injector, 'get').and.returnValue(mockDialogService);
|
spyOn(openmct.$injector, 'get').and.returnValue(mockDialogService);
|
||||||
spyOn(compositionAPI, 'get').and.returnValue(mockComposition);
|
spyOn(compositionAPI, 'get').and.returnValue(mockComposition);
|
||||||
spyOn(openmct.objects, 'mutate');
|
spyOn(openmct.objects, 'save');
|
||||||
|
|
||||||
newFolderAction.invoke(mockObjectPath);
|
newFolderAction.invoke(mockObjectPath);
|
||||||
});
|
});
|
||||||
@ -89,7 +89,7 @@ describe("the plugin", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('creates a new folder object', () => {
|
it('creates a new folder object', () => {
|
||||||
expect(openmct.objects.mutate).toHaveBeenCalled();
|
expect(openmct.objects.save).toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('adds new folder object to parent composition', () => {
|
it('adds new folder object to parent composition', () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user