diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-13 22:48:54 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-13 22:48:54 +0200 |
commit | f333f6b38f985c40247f7c82dd462f3016611dfe (patch) | |
tree | 80d7b1eed242e46af01cba658313703428ccb699 /js/tests/services | |
parent | b9de58c0c9da63f6a489df416df1819a40cb507d (diff) |
fix js tests
Diffstat (limited to 'js/tests/services')
-rw-r--r-- | js/tests/services/businesslayer/feedbusinesslayerSpec.coffee | 4 | ||||
-rw-r--r-- | js/tests/services/businesslayer/folderbusinesslayerSpec.coffee | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/js/tests/services/businesslayer/feedbusinesslayerSpec.coffee b/js/tests/services/businesslayer/feedbusinesslayerSpec.coffee index b18b47006..c15b2ed12 100644 --- a/js/tests/services/businesslayer/feedbusinesslayerSpec.coffee +++ b/js/tests/services/businesslayer/feedbusinesslayerSpec.coffee @@ -310,7 +310,7 @@ describe 'FeedBusinessLayer', -> @persistence.createFeed.andCallFake (folderName, parentId, success, failure) => @response = - msg: 'this is an error' + message: 'this is an error' failure(@response) @FeedBusinessLayer.create(' johns ', 0, onSuccess, onFailure) @@ -319,7 +319,7 @@ describe 'FeedBusinessLayer', -> expect(onFailure).toHaveBeenCalled() expect(@FeedModel.getByUrl('http://johns').error).toBe( - @response.msg) + @response.message) it 'should mark a feed error as read by removing it', => diff --git a/js/tests/services/businesslayer/folderbusinesslayerSpec.coffee b/js/tests/services/businesslayer/folderbusinesslayerSpec.coffee index 1d8431513..2c5c9bf2a 100644 --- a/js/tests/services/businesslayer/folderbusinesslayerSpec.coffee +++ b/js/tests/services/businesslayer/folderbusinesslayerSpec.coffee @@ -239,7 +239,7 @@ describe 'FolderBusinessLayer', -> @persistence.createFolder.andCallFake (folderName, parentId, success, onFailure) => @response = - msg: 'this is an error' + message: 'this is an error' onFailure(@response) @FolderBusinessLayer.create(' johns ', onSuccess, onFailure) @@ -247,7 +247,7 @@ describe 'FolderBusinessLayer', -> expect(onSuccess).not.toHaveBeenCalled() expect(onFailure).toHaveBeenCalled() - expect(@FolderModel.getByName('johns').error).toBe(@response.msg) + expect(@FolderModel.getByName('johns').error).toBe(@response.message) it 'should mark a folder error as read by removing it', => |