mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 05:07:52 +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(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', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user