From 63438ad9bad17583fd54358197aa5c6eb0b811e2 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Thu, 19 May 2016 12:02:42 -0700 Subject: [PATCH] [Persistence] Don't expect persist calls in LinkAction spec --- platform/commonUI/edit/test/actions/LinkActionSpec.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/platform/commonUI/edit/test/actions/LinkActionSpec.js b/platform/commonUI/edit/test/actions/LinkActionSpec.js index 144dd4e395..1580eb0615 100644 --- a/platform/commonUI/edit/test/actions/LinkActionSpec.js +++ b/platform/commonUI/edit/test/actions/LinkActionSpec.js @@ -30,7 +30,6 @@ define( mockParent, mockContext, mockComposition, - mockPersistence, mockType, actionContext, model, @@ -66,7 +65,6 @@ define( }; mockContext = jasmine.createSpyObj("context", [ "getParent" ]); mockComposition = jasmine.createSpyObj("composition", [ "invoke", "add" ]); - mockPersistence = jasmine.createSpyObj("persistence", [ "persist" ]); mockType = jasmine.createSpyObj("type", [ "hasFeature" ]); mockDomainObject.getId.andReturn("test"); @@ -78,7 +76,6 @@ define( capabilities = { composition: mockComposition, - persistence: mockPersistence, type: mockType }; model = { @@ -100,11 +97,6 @@ define( .toHaveBeenCalledWith(mockDomainObject); }); - it("persists changes afterward", function () { - action.perform(); - expect(mockPersistence.persist).toHaveBeenCalled(); - }); - }); } );