Skip to content

Commit 9533055

Browse files
crisbetoandrewseguin
authored andcommitted
test(overlay): block scroll strategy testing styles leaking into other tests (#14771)
Fixes some styles that are assigned to the `html` node not being reset after the test is done.
1 parent 218cd96 commit 9533055

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)