diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-03-15 12:54:31 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-03-21 08:16:00 +0100 |
commit | ff164db9350347b404d180fe08f3cb30e8c3d520 (patch) | |
tree | 5a97e3a2f2fe3865a54dc7c3ca8836cfd3c2d4bb /apps/files_sharing/tests | |
parent | 4c884f1b235375a9e93e11acc1a5f057eee6282e (diff) | |
download | nextcloud-server-ff164db9350347b404d180fe08f3cb30e8c3d520.tar.gz nextcloud-server-ff164db9350347b404d180fe08f3cb30e8c3d520.zip |
Add link icon for public link too
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_sharing/tests')
-rw-r--r-- | apps/files_sharing/tests/js/shareSpec.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files_sharing/tests/js/shareSpec.js b/apps/files_sharing/tests/js/shareSpec.js index 39472fdeedb..a4aa6eea746 100644 --- a/apps/files_sharing/tests/js/shareSpec.js +++ b/apps/files_sharing/tests/js/shareSpec.js @@ -1,4 +1,4 @@ -/* +/** * Copyright (c) 2014 Vincent Petry <pvince81@owncloud.com> * * This file is licensed under the Affero General Public License version 3 @@ -149,7 +149,7 @@ describe('OCA.Sharing.Util tests', function() { expect($action.find('.icon').hasClass('icon-public')).toEqual(true); expect(OC.basename(getImageUrl($tr.find('.filename .thumbnail')))).toEqual('folder-public.svg'); }); - it('shows owner name when owner is available', function() { + it('shows owner name when owner is available but no icons', function() { var $action, $tr; fileList.setFiles([{ id: 1, @@ -167,7 +167,7 @@ describe('OCA.Sharing.Util tests', function() { $tr = fileList.$el.find('tbody tr:first'); $action = $tr.find('.action-share'); expect($action.find('>span').text().trim()).toEqual('Shared by User One'); - expect($action.find('.icon').hasClass('icon-shared')).toEqual(true); + expect($action.find('.icon').hasClass('icon-shared')).toEqual(false); expect($action.find('.icon').hasClass('icon-public')).toEqual(false); expect(OC.basename(getImageUrl($tr.find('.filename .thumbnail')))).toEqual('folder-shared.svg'); }); @@ -389,7 +389,7 @@ describe('OCA.Sharing.Util tests', function() { }); expect($action.find('>span').text().trim()).toEqual('Shared by User One'); - expect($action.find('.icon').hasClass('icon-shared')).toEqual(true); + expect($action.find('.icon').hasClass('icon-shared')).toEqual(false); expect($action.find('.icon').hasClass('icon-public')).toEqual(false); }); it('keep share text after unsharing reshare', function() { @@ -422,7 +422,7 @@ describe('OCA.Sharing.Util tests', function() { expect($tr.attr('data-share-recipient-data')).not.toBeDefined(); expect($action.find('>span').text().trim()).toEqual('Shared by User One'); - expect($action.find('.icon').hasClass('icon-shared')).toEqual(true); + expect($action.find('.icon').hasClass('icon-shared')).toEqual(false); expect($action.find('.icon').hasClass('icon-public')).toEqual(false); }); }); |