diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-15 18:11:38 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-15 18:11:38 +0200 |
commit | 94e82411f7def5b3f79df43eb0279142cea19f1e (patch) | |
tree | f352530c4689644dcf58c8fcf8a42dc8b0c6fa2c /js/tests/services | |
parent | c171e9e381e6d7af9c2dd44ff82f9fef381a2e1a (diff) |
fix unittest breakage errors in firefox and phantomjs, bump build tools
Diffstat (limited to 'js/tests/services')
-rw-r--r-- | js/tests/services/businesslayer/feedbusinesslayerSpec.coffee | 6 | ||||
-rw-r--r-- | js/tests/services/businesslayer/folderbusinesslayerSpec.coffee | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/js/tests/services/businesslayer/feedbusinesslayerSpec.coffee b/js/tests/services/businesslayer/feedbusinesslayerSpec.coffee index bcb4476cf..1ee9aaa3d 100644 --- a/js/tests/services/businesslayer/feedbusinesslayerSpec.coffee +++ b/js/tests/services/businesslayer/feedbusinesslayerSpec.coffee @@ -230,17 +230,17 @@ describe 'FeedBusinessLayer', -> expect => @FeedBusinessLayer.create('john') - .toThrow(new @_ExistsError()) + .toThrow(new @_ExistsError('Exists already')) expect => @FeedBusinessLayer.create('johns') - .not.toThrow(new @_ExistsError()) + .not.toThrow(new @_ExistsError('Exists already')) it 'should not create feeds that are empty', => expect => @FeedBusinessLayer.create(' ') - .toThrow(new Error()) + .toThrow(new Error('Url must not be empty')) it 'should create a feed before theres a response from the server', => diff --git a/js/tests/services/businesslayer/folderbusinesslayerSpec.coffee b/js/tests/services/businesslayer/folderbusinesslayerSpec.coffee index 8c0264188..32573dde5 100644 --- a/js/tests/services/businesslayer/folderbusinesslayerSpec.coffee +++ b/js/tests/services/businesslayer/folderbusinesslayerSpec.coffee @@ -140,17 +140,17 @@ describe 'FolderBusinessLayer', -> expect => @FolderBusinessLayer.create('john') - .toThrow(new @_ExistsError()) + .toThrow(new @_ExistsError('Exists already')) expect => @FolderBusinessLayer.create('johns') - .not.toThrow(new @_ExistsError()) + .not.toThrow(new @_ExistsError('Exists already')) it 'should not create folders that are empty', => expect => @FolderBusinessLayer.create(' ') - .toThrow(new Error()) + .toThrow(new Error('Folder name must not be empty')) it 'should create a folder before theres a response from the server', => |