Skip to content

Commit 7fc41c0

Browse files
committed
test(overlay): block scroll strategy testing styles leaking into other tests
Fixes some styles that are assigned to the `html` node not being reset after the test is done.
1 parent 4b35cad commit 7fc41c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cdk/overlay/scroll/block-scroll-strategy.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ describe('BlockScrollStrategy', () => {
122122

123123
expect(root.style.top).toBe('13px');
124124
expect(root.style.left).toBe('37px');
125+
126+
root.style.top = '';
127+
root.style.left = '';
125128
}));
126129

127130
it(`should't do anything if the page isn't scrollable`, skipIOS(() => {

0 commit comments

Comments
 (0)