summaryrefslogtreecommitdiffstats
path: root/core/js/tests/specs/sharedialogviewSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js/tests/specs/sharedialogviewSpec.js')
-rw-r--r--core/js/tests/specs/sharedialogviewSpec.js16
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);
+ });
+ });
});