Skip to content

Commit 485db25

Browse files
committed
fix type issue
1 parent cbfacdd commit 485db25

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/cdk-experimental/scrolling/virtual-scroll-viewport.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
padding: {
1414
#{$start}: 0;
1515
#{$end}: 0
16-
};
16+
}
1717
margin: {
1818
#{$start}: 0;
1919
#{$end}: 0
20-
};
20+
}
2121
border: {
2222
#{$start}-width: 0;
2323
#{$end}-width: 0
24-
};
24+
}
2525
outline: none;
2626
}
2727
}

src/cdk-experimental/scrolling/virtual-scroll-viewport.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('CdkVirtualScrollViewport', () => {
2727
finishInit(fixture);
2828

2929
const contentWrapper =
30-
viewport.elementRef.nativeElement.querySelector('.cdk-virtual-scroll-content-wrapper');
30+
viewport.elementRef.nativeElement.querySelector('.cdk-virtual-scroll-content-wrapper')!;
3131
expect(contentWrapper.children.length)
3232
.toBe(4, 'should render 4 50px items to fill 200px space');
3333
}));
@@ -507,7 +507,7 @@ describe('CdkVirtualScrollViewport', () => {
507507
finishInit(fixture);
508508

509509
const contentWrapper =
510-
viewport.elementRef.nativeElement.querySelector('.cdk-virtual-scroll-content-wrapper');
510+
viewport.elementRef.nativeElement.querySelector('.cdk-virtual-scroll-content-wrapper')!;
511511
expect(contentWrapper.children.length)
512512
.toBe(4, 'should render 4 50px items to fill 200px space');
513513
}));
@@ -517,7 +517,7 @@ describe('CdkVirtualScrollViewport', () => {
517517
finishInit(fixture);
518518

519519
const contentWrapper =
520-
viewport.elementRef.nativeElement.querySelector('.cdk-virtual-scroll-content-wrapper');
520+
viewport.elementRef.nativeElement.querySelector('.cdk-virtual-scroll-content-wrapper')!;
521521
expect(contentWrapper.children.length).toBe(4,
522522
'should render 4 items to fill 200px space based on 50px estimate from first item');
523523
}));

0 commit comments

Comments
 (0)