[Create] Update CopyService spec

...to reflect API usage after #656
This commit is contained in:
Victor Woeltjen 2016-02-10 14:21:09 -08:00
parent cb53e1aaee
commit 99a454f943

View File

@ -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);
}); });
}); });
}); });