diff options
author | Björn Schießle <bjoern@schiessle.org> | 2017-11-20 16:15:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-20 16:15:52 +0100 |
commit | f347e2e4a6cab71c35d58ff21692e23d7443db60 (patch) | |
tree | 878bd5f18958fdde2666d58b49a558a98bc209e9 /apps/files/tests/js | |
parent | bca165805ea8b27cc127ac71f140d8d0ed7f4edb (diff) | |
parent | 3e844d3a59cc571c93b6edcd80dce2cffd89072b (diff) | |
download | nextcloud-server-f347e2e4a6cab71c35d58ff21692e23d7443db60.tar.gz nextcloud-server-f347e2e4a6cab71c35d58ff21692e23d7443db60.zip |
Merge pull request #7047 from nextcloud/add-support-for-files-with-no-permissions
Add support for files with no permissions
Diffstat (limited to 'apps/files/tests/js')
-rw-r--r-- | apps/files/tests/js/filelistSpec.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/files/tests/js/filelistSpec.js b/apps/files/tests/js/filelistSpec.js index c590275e1cf..64fc6876493 100644 --- a/apps/files/tests/js/filelistSpec.js +++ b/apps/files/tests/js/filelistSpec.js @@ -297,6 +297,15 @@ describe('OCA.Files.FileList tests', function() { expect($tr.find('.filesize').text()).toEqual('Pending'); expect($tr.find('.date').text()).not.toEqual('?'); }); + it('generates file element with no permissions when permissions are explicitly none', function() { + var fileData = { + type: 'dir', + name: 'testFolder', + permissions: OC.PERMISSION_NONE + }; + var $tr = fileList.add(fileData); + expect($tr.attr('data-permissions')).toEqual('0'); + }); it('generates file element with zero size when size is explicitly zero', function() { var fileData = { type: 'dir', |