Skip to content

Commit 48eaa8c

Browse files
committed
feat(modal): uptating tests to use pseudo element instead of #ids
1 parent 3c9eeb1 commit 48eaa8c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/modal/test/modal.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)