Add test for remote share info tooltop

remotes/origin/dav-zip-folder
Tom Needham 9 years ago
parent 645d27a849
commit 2ca5b1aa1f

@ -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);
});
});
});

Loading…
Cancel
Save