[Persistence] Don't expect persist calls in LinkAction spec

This commit is contained in:
Victor Woeltjen 2016-05-19 12:02:42 -07:00
parent 467f4d2257
commit 63438ad9ba

View File

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