diff options
author | Tom Needham <tom@owncloud.com> | 2015-10-21 10:00:29 +0000 |
---|---|---|
committer | Tom Needham <tom@owncloud.com> | 2015-10-21 10:00:29 +0000 |
commit | 2ca5b1aa1f9961948be2b1dbc1694203e6392f79 (patch) | |
tree | 11162a925794b1141407b103a4dd6d79c91ea10b /core | |
parent | 645d27a84931e936048a391943914f58a2bebb75 (diff) | |
download | nextcloud-server-2ca5b1aa1f9961948be2b1dbc1694203e6392f79.tar.gz nextcloud-server-2ca5b1aa1f9961948be2b1dbc1694203e6392f79.zip |
Add test for remote share info tooltop
Diffstat (limited to 'core')
-rw-r--r-- | core/js/tests/specs/sharedialogviewSpec.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/js/tests/specs/sharedialogviewSpec.js b/core/js/tests/specs/sharedialogviewSpec.js index 55aa0541bd0..db34d55ebd7 100644 --- a/core/js/tests/specs/sharedialogviewSpec.js +++ b/core/js/tests/specs/sharedialogviewSpec.js @@ -676,5 +676,21 @@ describe('OC.Share.ShareDialogView', function() { }); }); }); + describe('remote sharing', function() { + it('shows remote share info when allows', function() { + configModel.set({ + isRemoteShareAllowed: true + }); + dialog.render(); + expect(dialog.$el.find('.shareWithRemoteInfo').length).toEqual(1); + }); + it('does not show remote share info when not allowed', function() { + configModel.set({ + isRemoteShareAllowed: false + }); + dialog.render(); + expect(dialog.$el.find('.shareWithRemoteInfo').length).toEqual(0); + }); + }); }); |