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>
This commit is contained in:
parent
e2c755a4b5
commit
ec375b3d86
1 changed files with 1 additions and 16 deletions
|
@ -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],
|
||||
|
|
Loading…
Reference in a new issue