@@ -34,14 +34,12 @@ describe('CdkVirtualScrollViewport', () => {
34
34
let testComponent : FixedSizeVirtualScroll ;
35
35
let viewport : CdkVirtualScrollViewport ;
36
36
37
- beforeEach (
38
- waitForAsync ( ( ) => {
39
- TestBed . configureTestingModule ( {
40
- imports : [ ScrollingModule ] ,
41
- declarations : [ FixedSizeVirtualScroll ] ,
42
- } ) . compileComponents ( ) ;
43
- } ) ,
44
- ) ;
37
+ beforeEach ( waitForAsync ( ( ) => {
38
+ TestBed . configureTestingModule ( {
39
+ imports : [ ScrollingModule ] ,
40
+ declarations : [ FixedSizeVirtualScroll ] ,
41
+ } ) . compileComponents ( ) ;
42
+ } ) ) ;
45
43
46
44
beforeEach ( ( ) => {
47
45
fixture = TestBed . createComponent ( FixedSizeVirtualScroll ) ;
@@ -953,14 +951,12 @@ describe('CdkVirtualScrollViewport', () => {
953
951
let testComponent : VirtualScrollWithItemInjectingViewContainer ;
954
952
let viewport : CdkVirtualScrollViewport ;
955
953
956
- beforeEach (
957
- waitForAsync ( ( ) => {
958
- TestBed . configureTestingModule ( {
959
- imports : [ ScrollingModule ] ,
960
- declarations : [ VirtualScrollWithItemInjectingViewContainer , InjectsViewContainer ] ,
961
- } ) . compileComponents ( ) ;
962
- } ) ,
963
- ) ;
954
+ beforeEach ( waitForAsync ( ( ) => {
955
+ TestBed . configureTestingModule ( {
956
+ imports : [ ScrollingModule ] ,
957
+ declarations : [ VirtualScrollWithItemInjectingViewContainer , InjectsViewContainer ] ,
958
+ } ) . compileComponents ( ) ;
959
+ } ) ) ;
964
960
965
961
beforeEach ( ( ) => {
966
962
fixture = TestBed . createComponent ( VirtualScrollWithItemInjectingViewContainer ) ;
@@ -990,17 +986,15 @@ describe('CdkVirtualScrollViewport', () => {
990
986
let testComponent : DelayedInitializationVirtualScroll ;
991
987
let viewport : CdkVirtualScrollViewport ;
992
988
993
- beforeEach (
994
- waitForAsync ( ( ) => {
995
- TestBed . configureTestingModule ( {
996
- imports : [ ScrollingModule , CommonModule ] ,
997
- declarations : [ DelayedInitializationVirtualScroll ] ,
998
- } ) . compileComponents ( ) ;
999
- fixture = TestBed . createComponent ( DelayedInitializationVirtualScroll ) ;
1000
- testComponent = fixture . componentInstance ;
1001
- viewport = testComponent . viewport ;
1002
- } ) ,
1003
- ) ;
989
+ beforeEach ( waitForAsync ( ( ) => {
990
+ TestBed . configureTestingModule ( {
991
+ imports : [ ScrollingModule , CommonModule ] ,
992
+ declarations : [ DelayedInitializationVirtualScroll ] ,
993
+ } ) . compileComponents ( ) ;
994
+ fixture = TestBed . createComponent ( DelayedInitializationVirtualScroll ) ;
995
+ testComponent = fixture . componentInstance ;
996
+ viewport = testComponent . viewport ;
997
+ } ) ) ;
1004
998
1005
999
it ( 'should call custom trackBy when virtual for is added after init' , fakeAsync ( ( ) => {
1006
1000
finishInit ( fixture ) ;
@@ -1021,17 +1015,15 @@ describe('CdkVirtualScrollViewport', () => {
1021
1015
let testComponent : VirtualScrollWithAppendOnly ;
1022
1016
let viewport : CdkVirtualScrollViewport ;
1023
1017
1024
- beforeEach (
1025
- waitForAsync ( ( ) => {
1026
- TestBed . configureTestingModule ( {
1027
- imports : [ ScrollingModule , CommonModule ] ,
1028
- declarations : [ VirtualScrollWithAppendOnly ] ,
1029
- } ) . compileComponents ( ) ;
1030
- fixture = TestBed . createComponent ( VirtualScrollWithAppendOnly ) ;
1031
- testComponent = fixture . componentInstance ;
1032
- viewport = testComponent . viewport ;
1033
- } ) ,
1034
- ) ;
1018
+ beforeEach ( waitForAsync ( ( ) => {
1019
+ TestBed . configureTestingModule ( {
1020
+ imports : [ ScrollingModule , CommonModule ] ,
1021
+ declarations : [ VirtualScrollWithAppendOnly ] ,
1022
+ } ) . compileComponents ( ) ;
1023
+ fixture = TestBed . createComponent ( VirtualScrollWithAppendOnly ) ;
1024
+ testComponent = fixture . componentInstance ;
1025
+ viewport = testComponent . viewport ;
1026
+ } ) ) ;
1035
1027
1036
1028
it ( 'should not remove item that have already been rendered' , fakeAsync ( ( ) => {
1037
1029
finishInit ( fixture ) ;
0 commit comments