File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -437,19 +437,19 @@ describe('$modal', function () {
437437
438438 describe ( 'parent' , function ( ) {
439439 beforeEach ( function ( ) {
440- $document . find ( 'body' ) . append ( '<div id=" modal-container"></div >' ) ;
440+ $document . find ( 'body' ) . append ( '<modal><modal >' ) ;
441441 } ) ;
442442
443443 it ( 'should use an element other than body as the parent if provided' , function ( ) {
444444 open ( {
445445 template : '<div>Parent other than body</div>' ,
446- parent : '# modal-container '
446+ parent : 'modal'
447447 } ) ;
448- expect ( $document ) . toHaveModalOpenInOtherParent ( '# modal-container ' ) ;
448+ expect ( $document ) . toHaveModalOpenInOtherParent ( 'modal' ) ;
449449 } ) ;
450450
451451 afterEach ( function ( ) {
452- $document . find ( 'body' ) . find ( '# modal-container ' ) . remove ( ) ;
452+ $document . find ( 'body' ) . find ( 'modal' ) . remove ( ) ;
453453 } ) ;
454454 } ) ;
455455
You can’t perform that action at this time.
0 commit comments