Skip to content

Commit 2d82339

Browse files
committed
Fix test DI issues.
1 parent b62c5b9 commit 2d82339

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/lib/core/overlay/disable-body-scroll.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ describe('DisableBodyScroll', () => {
1313

1414
beforeEach(async(() => {
1515
TestBed.configureTestingModule({
16-
imports: [OverlayModule.forRoot()]
16+
imports: [OverlayModule.forRoot()],
17+
providers: [DisableBodyScroll]
1718
});
1819
}));
1920

src/lib/core/overlay/disable-body-scroll.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class DisableBodyScroll {
1717
return this._isActive;
1818
}
1919

20-
constructor(private _viewportRuler: ViewportRuler) {}
20+
constructor(private _viewportRuler: ViewportRuler) { }
2121

2222
/**
2323
* Disables scrolling if it hasn't been disabled already and if the body is scrollable.

0 commit comments

Comments
 (0)