File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ npm i @angular/animations@latest \
17
17
@angular/router@latest \
18
18
@angular/service-worker@latest \
19
19
@schematics/angular@latest \
20
- typescript@3.5.3 \
20
+ @types/node@latest \
21
+ typescript@3.7.5 \
21
22
tsickle@0.35.0 \
22
23
rxjs@6.5.2
Original file line number Diff line number Diff line change @@ -275,9 +275,9 @@ describe('popover', () => {
275
275
expect ( windowEl . textContent . trim ( ) ) . toBe ( 'Great tip!' ) ;
276
276
} ) ;
277
277
278
- it ( 'should set position to right when use auto position and fit on screen' , ( ) => {
278
+ it ( 'should set position to top when use auto position and fit on screen' , ( ) => {
279
279
const fixture = createTestComponent (
280
- `<div style="padding: 400px"><div popover="Great tip!" placement="auto"></div></div>`
280
+ `<div style="padding: 400px"><div popover="Great tip!" placement="auto right "></div></div>`
281
281
) ;
282
282
const directive = fixture . debugElement . query (
283
283
By . directive ( PopoverDirective )
@@ -289,7 +289,7 @@ describe('popover', () => {
289
289
290
290
expect ( windowEl ) . toHaveCssClass ( 'popover' ) ;
291
291
expect ( windowEl ) . toHaveCssClass ( 'popover-auto' ) ;
292
- expect ( windowEl ) . toHaveCssClass ( 'top ' ) ;
292
+ expect ( windowEl ) . toHaveCssClass ( 'right ' ) ;
293
293
expect ( windowEl . textContent . trim ( ) ) . toBe ( 'Great tip!' ) ;
294
294
} ) ;
295
295
Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ describe('tooltip', () => {
243
243
244
244
it ( 'should use auto position' , ( ) => {
245
245
const fixture = createTestComponent (
246
- `<div style="padding:400px"><div tooltip="Great tip!" placement="auto"></div></div>`
246
+ `<div style="padding:400px"><div tooltip="Great tip!" placement="auto top "></div></div>`
247
247
) ;
248
248
const directive = fixture . debugElement . query (
249
249
By . directive ( TooltipDirective )
You can’t perform that action at this time.
0 commit comments