Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 58e74af

Browse files
committed
test(modal): add test for custom modal sizes
Related to #3429
1 parent 85eeb95 commit 58e74af

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/modal/test/modal.spec.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,15 @@ describe('$modal', function () {
548548

549549
expect($document.find('div.modal-dialog')).toHaveClass('modal-lg');
550550
});
551+
552+
it('should support custom size modal dialogs', function () {
553+
open({
554+
template: '<div>Large modal dialog</div>',
555+
size: 'custom'
556+
});
557+
558+
expect($document.find('div.modal-dialog')).toHaveClass('modal-custom');
559+
});
551560
});
552561
});
553562

0 commit comments

Comments
 (0)