summaryrefslogtreecommitdiffstats
path: root/js/tests/services/businesslayer/folderbusinesslayerSpec.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'js/tests/services/businesslayer/folderbusinesslayerSpec.coffee')
-rw-r--r--js/tests/services/businesslayer/folderbusinesslayerSpec.coffee6
1 files changed, 3 insertions, 3 deletions
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', =>