From abacfd84dad4334e26b44b367127d45fdaf3fde6 Mon Sep 17 00:00:00 2001
From: Thomas Müller <thomas.mueller@tmit.eu>
Date: Thu, 19 Feb 2015 11:23:01 +0100
Subject: fixing js unit tests

---
 apps/files/tests/js/fileUploadSpec.js | 13 -------------
 apps/files/tests/js/filesSpec.js      | 10 ----------
 2 files changed, 23 deletions(-)

(limited to 'apps/files/tests')

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'
-			);
-		});
 	});
 });
diff --git a/apps/files/tests/js/filesSpec.js b/apps/files/tests/js/filesSpec.js
index 4f8d5a29318..f20ba03e2f1 100644
--- a/apps/files/tests/js/filesSpec.js
+++ b/apps/files/tests/js/filesSpec.js
@@ -55,16 +55,6 @@ describe('OCA.Files.Files tests', function() {
 				'     ',
 				'.',
 				'..',
-				'back\\slash',
-				'sl/ash',
-				'lt<lt',
-				'gt>gt',
-				'col:on',
-				'double"quote',
-				'pi|pe',
-				'dont?ask?questions?',
-				'super*star',
-				'new\nline',
 				' ..',
 				'.. ',
 				'. ',
-- 
cgit v1.2.3