mirror of
https://github.com/nasa/openmct.git
synced 2025-05-02 08:43:17 +00:00
parent
cb53e1aaee
commit
99a454f943
@ -162,6 +162,7 @@ define(
|
|||||||
'compositionCapability',
|
'compositionCapability',
|
||||||
['invoke', 'add']
|
['invoke', 'add']
|
||||||
);
|
);
|
||||||
|
compositionCapability.add.andCallFake(synchronousPromise);
|
||||||
|
|
||||||
locationCapability = jasmine.createSpyObj(
|
locationCapability = jasmine.createSpyObj(
|
||||||
'locationCapability',
|
'locationCapability',
|
||||||
@ -401,8 +402,8 @@ define(
|
|||||||
it ("creates link instead of clone", function() {
|
it ("creates link instead of clone", function() {
|
||||||
var copiedObject = copyFinished.calls[0].args[0];
|
var copiedObject = copyFinished.calls[0].args[0];
|
||||||
expect(copiedObject).toBe(object);
|
expect(copiedObject).toBe(object);
|
||||||
expect(compositionCapability.add).toHaveBeenCalledWith(copiedObject.getId());
|
expect(compositionCapability.add)
|
||||||
//expect(newParent.getModel().composition).toContain(copiedObject.getId());
|
.toHaveBeenCalledWith(copiedObject);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user