aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/tests/js/fileUploadSpec.js
diff options
context:
space:
mode:
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'
- );
- });
});
});