Skip to content

Commit

Permalink
test(modal): add test for custom modal sizes
Browse files Browse the repository at this point in the history
Related to angular-ui#3429
  • Loading branch information
chrisirhc committed Mar 25, 2015
1 parent 85eeb95 commit 58e74af
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/modal/test/modal.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,15 @@ describe('$modal', function () {

expect($document.find('div.modal-dialog')).toHaveClass('modal-lg');
});

it('should support custom size modal dialogs', function () {
open({
template: '<div>Large modal dialog</div>',
size: 'custom'
});

expect($document.find('div.modal-dialog')).toHaveClass('modal-custom');
});
});
});

Expand Down

0 comments on commit 58e74af

Please sign in to comment.