diff --git a/platform/entanglement/test/services/LinkServiceSpec.js b/platform/entanglement/test/services/LinkServiceSpec.js index 32bb4c0a7a..69c6ebd48c 100644 --- a/platform/entanglement/test/services/LinkServiceSpec.js +++ b/platform/entanglement/test/services/LinkServiceSpec.js @@ -88,19 +88,15 @@ define( expect(validate()).toBe(false); }); - it("does not allow parents that contains object", function () { - object.id = 'abc'; - parentCandidate.id = 'xyz'; - parentCandidate.model.composition = ['abc']; - expect(validate()).toBe(false); - }); - it("does not allow parents without composition", function () { parentCandidate = domainObjectFactory({ name: 'parentCandidate' }); object.id = 'abc'; parentCandidate.id = 'xyz'; + parentCandidate.hasCapability.andCallFake(function (c) { + return c !== 'composition'; + }); parentCandidate.model.composition = undefined; expect(validate()).toBe(false); });