summaryrefslogtreecommitdiffstats
path: root/apps/files/tests/js/filesSpec.js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-01-30 11:42:43 +0100
committerVincent Petry <pvince81@owncloud.com>2014-01-30 13:40:01 +0100
commitba1b9df8a9c2da0f46f2b5a587eeb92c8c3d528d (patch)
tree18cb9741cb23f8667665224b99dc56e93f3ecee4 /apps/files/tests/js/filesSpec.js
parentd36a2ff9eeedc9ebb2ebbba5d55cc255281e9929 (diff)
downloadnextcloud-server-ba1b9df8a9c2da0f46f2b5a587eeb92c8c3d528d.tar.gz
nextcloud-server-ba1b9df8a9c2da0f46f2b5a587eeb92c8c3d528d.zip
Fixed file name validation unit test + added newline
- fixed file name validation unit test - added "\n" as forbidden character in isFileNameValid()
Diffstat (limited to 'apps/files/tests/js/filesSpec.js')
-rw-r--r--apps/files/tests/js/filesSpec.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files/tests/js/filesSpec.js b/apps/files/tests/js/filesSpec.js
index 510b4df0046..018c8ef0f3c 100644
--- a/apps/files/tests/js/filesSpec.js
+++ b/apps/files/tests/js/filesSpec.js
@@ -73,6 +73,7 @@ describe('Files tests', function() {
var threwException = false;
try {
Files.isFileNameValid(fileNames[i]);
+ console.error('Invalid file name not detected:', fileNames[i]);
}
catch (e) {
threwException = true;