diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-04-26 16:34:24 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-04-26 16:34:24 +0200 |
commit | d379770cf278af5f6717a1ef60abc770c4f960b8 (patch) | |
tree | 002d33ee3c3e7178f9d17d2443ce357029e1a9d8 /apps | |
parent | 0771dad57fc9683b9abf694fb57a1cb91ca67aa2 (diff) | |
download | nextcloud-server-d379770cf278af5f6717a1ef60abc770c4f960b8.tar.gz nextcloud-server-d379770cf278af5f6717a1ef60abc770c4f960b8.zip |
Fix sharedfilelistSpec.js tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/tests/js/sharedfilelistSpec.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/files_sharing/tests/js/sharedfilelistSpec.js b/apps/files_sharing/tests/js/sharedfilelistSpec.js index 903234947bd..492a7255c61 100644 --- a/apps/files_sharing/tests/js/sharedfilelistSpec.js +++ b/apps/files_sharing/tests/js/sharedfilelistSpec.js @@ -723,6 +723,7 @@ describe('OCA.Sharing.FileList tests', function() { mimetype: 'text/plain', size: 12, permissions: OC.PERMISSION_READ, + sharePermissions: OC.PERMISSION_READ, etag: 'abc', shareOwner: 'User One', recipients: 'User Two', @@ -730,7 +731,7 @@ describe('OCA.Sharing.FileList tests', function() { }]); $tr = fileList.$el.find('tr:first'); - expect(parseInt($tr.attr('data-share-permissions'), 10)).toEqual(OC.PERMISSION_ALL - OC.PERMISSION_SHARE); + expect(parseInt($tr.attr('data-share-permissions'), 10)).toEqual(OC.PERMISSION_READ); }); it('external storage root folder reshare', function () { @@ -744,6 +745,7 @@ describe('OCA.Sharing.FileList tests', function() { mimetype: 'text/plain', size: 12, permissions: OC.PERMISSION_READ + OC.PERMISSION_SHARE, + sharePermissions: OC.PERMISSION_READ + OC.PERMISSION_SHARE, etag: 'abc', shareOwner: 'User One', recipients: 'User Two', @@ -751,7 +753,7 @@ describe('OCA.Sharing.FileList tests', function() { }]); $tr = fileList.$el.find('tr:first'); - expect(parseInt($tr.attr('data-share-permissions'), 10)).toEqual(OC.PERMISSION_ALL); + expect(parseInt($tr.attr('data-share-permissions'), 10)).toEqual(OC.PERMISSION_READ + OC.PERMISSION_SHARE); }); it('external storage root folder file', function () { @@ -765,6 +767,7 @@ describe('OCA.Sharing.FileList tests', function() { mimetype: 'text/plain', size: 12, permissions: OC.PERMISSION_READ, + sharePermissions: OC.PERMISSION_READ, etag: 'abc', shareOwner: 'User One', recipients: 'User Two', @@ -773,7 +776,7 @@ describe('OCA.Sharing.FileList tests', function() { $tr = fileList.$el.find('tr:first'); expect(parseInt($tr.attr('data-share-permissions'), 10)) - .toEqual(OC.PERMISSION_ALL - OC.PERMISSION_SHARE - OC.PERMISSION_DELETE - OC.PERMISSION_CREATE); + .toEqual(OC.PERMISSION_READ); }); }); }); |