Refactored some CopyService functions out to CopyTask

This commit is contained in:
Henry
2015-11-05 16:39:46 -08:00
parent aa2a835cb1
commit e1c6c76612
3 changed files with 13 additions and 19 deletions

View File

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