Skip to content

Commit 92e1fb3

Browse files
committed
wip
1 parent 3cc7073 commit 92e1fb3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/cdk/overlay/overlay.spec.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ describe('Overlay', () => {
107107
expect(overlayContainerElement.textContent).toBe('');
108108
});
109109

110-
it('should ensure that the most-recently-attached overlay is on top', fakeAsync(() => {
110+
it('should ensure that the most-recently-attached overlay is on top', (() => {
111111
let pizzaOverlayRef = overlay.create();
112112
let cakeOverlayRef = overlay.create();
113113

@@ -230,13 +230,15 @@ describe('Overlay', () => {
230230
state = new OverlayState();
231231
});
232232

233-
it('should apply the positioning strategy', () => {
233+
it('should apply the positioning strategy', fakeAsync(() => {
234234
state.positionStrategy = new FakePositionStrategy();
235235

236236
overlay.create(state).attach(componentPortal);
237+
viewContainerFixture.detectChanges();
238+
tick();
237239

238240
expect(overlayContainerElement.querySelectorAll('.fake-positioned').length).toBe(1);
239-
});
241+
}));
240242
});
241243

242244
describe('size', () => {

0 commit comments

Comments
 (0)