From 99a454f9430f6aa5dc40ea4b8ed073bc294168fd Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Wed, 10 Feb 2016 14:21:09 -0800 Subject: [PATCH] [Create] Update CopyService spec ...to reflect API usage after #656 --- platform/entanglement/test/services/CopyServiceSpec.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/entanglement/test/services/CopyServiceSpec.js b/platform/entanglement/test/services/CopyServiceSpec.js index 3d4ebf147e..e1849ec60c 100644 --- a/platform/entanglement/test/services/CopyServiceSpec.js +++ b/platform/entanglement/test/services/CopyServiceSpec.js @@ -162,6 +162,7 @@ define( 'compositionCapability', ['invoke', 'add'] ); + compositionCapability.add.andCallFake(synchronousPromise); locationCapability = jasmine.createSpyObj( 'locationCapability', @@ -401,8 +402,8 @@ define( it ("creates link instead of clone", function() { var copiedObject = copyFinished.calls[0].args[0]; expect(copiedObject).toBe(object); - expect(compositionCapability.add).toHaveBeenCalledWith(copiedObject.getId()); - //expect(newParent.getModel().composition).toContain(copiedObject.getId()); + expect(compositionCapability.add) + .toHaveBeenCalledWith(copiedObject); }); }); });