From 2ad92e451606bcd9177350f127b9f0f3f99aec6d Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Wed, 23 Jan 2019 20:15:13 +0100 Subject: [PATCH] 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. --- src/cdk/overlay/scroll/block-scroll-strategy.spec.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cdk/overlay/scroll/block-scroll-strategy.spec.ts b/src/cdk/overlay/scroll/block-scroll-strategy.spec.ts index c4970763eee..fe5e9004c16 100644 --- a/src/cdk/overlay/scroll/block-scroll-strategy.spec.ts +++ b/src/cdk/overlay/scroll/block-scroll-strategy.spec.ts @@ -122,6 +122,9 @@ describe('BlockScrollStrategy', () => { expect(root.style.top).toBe('13px'); expect(root.style.left).toBe('37px'); + + root.style.top = ''; + root.style.left = ''; })); it(`should't do anything if the page isn't scrollable`, skipIOS(() => {