File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ describe('Overlay', () => {
107
107
expect ( overlayContainerElement . textContent ) . toBe ( '' ) ;
108
108
} ) ;
109
109
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' , ( ( ) => {
111
111
let pizzaOverlayRef = overlay . create ( ) ;
112
112
let cakeOverlayRef = overlay . create ( ) ;
113
113
@@ -230,13 +230,15 @@ describe('Overlay', () => {
230
230
state = new OverlayState ( ) ;
231
231
} ) ;
232
232
233
- it ( 'should apply the positioning strategy' , ( ) => {
233
+ it ( 'should apply the positioning strategy' , fakeAsync ( ( ) => {
234
234
state . positionStrategy = new FakePositionStrategy ( ) ;
235
235
236
236
overlay . create ( state ) . attach ( componentPortal ) ;
237
+ viewContainerFixture . detectChanges ( ) ;
238
+ tick ( ) ;
237
239
238
240
expect ( overlayContainerElement . querySelectorAll ( '.fake-positioned' ) . length ) . toBe ( 1 ) ;
239
- } ) ;
241
+ } ) ) ;
240
242
} ) ;
241
243
242
244
describe ( 'size' , ( ) => {
You can’t perform that action at this time.
0 commit comments