summaryrefslogtreecommitdiffstats
path: root/core/js/tests
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2017-11-02 16:31:04 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2017-11-02 19:37:01 +0100
commitec375b3d8682e8ce062433314c5a3d035b22b3a3 (patch)
treea41580fa77dcda302d3e6eb536ddcb13f1b2d7e5 /core/js/tests
parente2c755a4b5638c298c8cae27942681241f92fb7f (diff)
downloadnextcloud-server-ec375b3d8682e8ce062433314c5a3d035b22b3a3.tar.gz
nextcloud-server-ec375b3d8682e8ce062433314c5a3d035b22b3a3.zip
Fix tests for parsing of permissions
Now that these tests are executed they are revealed to be partially obsolete; they were fixed to match the current parsing behaviour. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'core/js/tests')
-rw-r--r--core/js/tests/specs/files/clientSpec.js17
1 files changed, 1 insertions, 16 deletions
diff --git a/core/js/tests/specs/files/clientSpec.js b/core/js/tests/specs/files/clientSpec.js
index ec0e15fd7b3..126ba3f4e65 100644
--- a/core/js/tests/specs/files/clientSpec.js
+++ b/core/js/tests/specs/files/clientSpec.js
@@ -658,7 +658,7 @@ describe('OC.Files.Client tests', function() {
['', true, OC.PERMISSION_READ],
['C', true, OC.PERMISSION_READ | OC.PERMISSION_CREATE],
['K', true, OC.PERMISSION_READ | OC.PERMISSION_CREATE],
- ['W', true, OC.PERMISSION_READ | OC.PERMISSION_CREATE | OC.PERMISSION_UPDATE],
+ ['W', true, OC.PERMISSION_READ | OC.PERMISSION_UPDATE],
['D', true, OC.PERMISSION_READ | OC.PERMISSION_DELETE],
['R', true, OC.PERMISSION_READ | OC.PERMISSION_SHARE],
['CKWDR', true, OC.PERMISSION_ALL]
@@ -667,21 +667,6 @@ describe('OC.Files.Client tests', function() {
return testPermission.apply(this, testCase);
});
});
- it('properly parses folder permissions', function() {
- var testCases = [
- ['', false, OC.PERMISSION_READ],
- ['C', false, OC.PERMISSION_READ | OC.PERMISSION_CREATE | OC.PERMISSION_UPDATE],
- ['K', false, OC.PERMISSION_READ | OC.PERMISSION_CREATE | OC.PERMISSION_UPDATE],
- ['W', false, OC.PERMISSION_READ | OC.PERMISSION_UPDATE],
- ['D', false, OC.PERMISSION_READ | OC.PERMISSION_DELETE],
- ['R', false, OC.PERMISSION_READ | OC.PERMISSION_SHARE],
- ['CKWDR', false, OC.PERMISSION_ALL]
- ];
-
- _.each(testCases, function(testCase) {
- return testPermission.apply(this, testCase);
- });
- });
it('properly parses mount types', function() {
var testCases = [
['CKWDR', false, null],