Skip to content

Commit bc1c2ce

Browse files
crisbetokara
authored andcommitted
test: fix a few more test leaks (#4508)
1 parent 32c3ef4 commit bc1c2ce

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib/core/overlay/position/connected-position-strategy.spec.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,11 @@ describe('ConnectedPositionStrategy', () => {
601601
positionBuilder = new OverlayPositionBuilder(viewportRuler);
602602
});
603603

604+
afterEach(() => {
605+
document.body.removeChild(originElement);
606+
document.body.removeChild(overlayContainerElement);
607+
});
608+
604609
describe('in ltr', () => {
605610
it('should use `left` when positioning an element at the start', () => {
606611
strategy = positionBuilder.connectedTo(

0 commit comments

Comments
 (0)