aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/tests/js/fileUploadSpec.js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-02-19 11:23:01 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-03-09 10:38:38 +0100
commitabacfd84dad4334e26b44b367127d45fdaf3fde6 (patch)
tree7c62737844472505eb68426fbcd3edbdb8dc0a91 /apps/files/tests/js/fileUploadSpec.js
parente28d314b53b82d5b71d16b7749563337d562dbe5 (diff)
downloadnextcloud-server-abacfd84dad4334e26b44b367127d45fdaf3fde6.tar.gz
nextcloud-server-abacfd84dad4334e26b44b367127d45fdaf3fde6.zip
fixing js unit tests
Diffstat (limited to 'apps/files/tests/js/fileUploadSpec.js')
-rw-r--r--apps/files/tests/js/fileUploadSpec.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/apps/files/tests/js/fileUploadSpec.js b/apps/files/tests/js/fileUploadSpec.js
index 2b4341ef1c3..49b7265ced1 100644
--- a/apps/files/tests/js/fileUploadSpec.js
+++ b/apps/files/tests/js/fileUploadSpec.js
@@ -110,18 +110,5 @@ describe('OC.Upload tests', function() {
'Not enough free space, you are uploading 5 kB but only 1000 B is left'
);
});
- it('does not add file if it has invalid characters', function() {
- var result;
- testFile.name = 'stars*stars.txt';
-
- result = addFile(testFile);
-
- expect(result).toEqual(false);
- expect(failStub.calledOnce).toEqual(true);
- expect(failStub.getCall(0).args[1].textStatus).toEqual('invalidcharacters');
- expect(failStub.getCall(0).args[1].errorThrown.substr(0, 12)).toEqual(
- 'Invalid name'
- );
- });
});
});