Skip to content

Commit c400fa2

Browse files
dozingcatjelbourn
authored andcommitted
Make sure div is always removed after tests. (#705)
1 parent 497a3c1 commit c400fa2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/overlay/position/viewport-ruler.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ describe('ViewportRuler', () => {
4646
// successfully constrain its size. As such, skip assertions in environments where the
4747
// window size has changed since the start of the test.
4848
if (window.innerWidth > startingWindowWidth || window.innerHeight > startingWindowHeight) {
49+
document.body.removeChild(veryLargeElement);
4950
return;
5051
}
5152

@@ -78,6 +79,7 @@ describe('ViewportRuler', () => {
7879
// successfully constrain its size. As such, skip assertions in environments where the
7980
// window size has changed since the start of the test.
8081
if (window.innerWidth > startingWindowWidth || window.innerHeight > startingWindowHeight) {
82+
document.body.removeChild(veryLargeElement);
8183
return;
8284
}
8385

0 commit comments

Comments
 (0)