Add test for remote share info tooltop

This commit is contained in:
Tom Needham 2015-10-21 10:00:29 +00:00
parent 645d27a849
commit 2ca5b1aa1f
1 changed files with 16 additions and 0 deletions

View File

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