Refactored some CopyService functions out to CopyTask
This commit is contained in:
@@ -342,17 +342,7 @@ define(
|
||||
expect(copyFinished.mostRecentCall.args[0].model.modified).toBeUndefined();
|
||||
expect(copyFinished.mostRecentCall.args[0].model.persisted).toBe(mockNow.now());
|
||||
});
|
||||
|
||||
/**
|
||||
Preserves links
|
||||
*/
|
||||
it ("preserves links", function() {
|
||||
expect(copyFinished.mostRecentCall.args[0].model.location).toBe("testLocation");
|
||||
});
|
||||
|
||||
/**
|
||||
Preserves links
|
||||
*/
|
||||
|
||||
it ("correctly locates cloned objects", function() {
|
||||
expect(mockPersistenceService.createObject.calls[0].args[2].location).toEqual(mockPersistenceService.createObject.calls[1].args[1]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user