@@ -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 ) ;
@@ -969,14 +967,12 @@ describe('CdkVirtualScrollViewport', () => {
969
967
let testComponent : VirtualScrollWithItemInjectingViewContainer ;
970
968
let viewport : CdkVirtualScrollViewport ;
971
969
972
- beforeEach (
973
- waitForAsync ( ( ) => {
974
- TestBed . configureTestingModule ( {
975
- imports : [ ScrollingModule ] ,
976
- declarations : [ VirtualScrollWithItemInjectingViewContainer , InjectsViewContainer ] ,
977
- } ) . compileComponents ( ) ;
978
- } ) ,
979
- ) ;
970
+ beforeEach ( waitForAsync ( ( ) => {
971
+ TestBed . configureTestingModule ( {
972
+ imports : [ ScrollingModule ] ,
973
+ declarations : [ VirtualScrollWithItemInjectingViewContainer , InjectsViewContainer ] ,
974
+ } ) . compileComponents ( ) ;
975
+ } ) ) ;
980
976
981
977
beforeEach ( ( ) => {
982
978
fixture = TestBed . createComponent ( VirtualScrollWithItemInjectingViewContainer ) ;
@@ -1006,17 +1002,15 @@ describe('CdkVirtualScrollViewport', () => {
1006
1002
let testComponent : DelayedInitializationVirtualScroll ;
1007
1003
let viewport : CdkVirtualScrollViewport ;
1008
1004
1009
- beforeEach (
1010
- waitForAsync ( ( ) => {
1011
- TestBed . configureTestingModule ( {
1012
- imports : [ ScrollingModule , CommonModule ] ,
1013
- declarations : [ DelayedInitializationVirtualScroll ] ,
1014
- } ) . compileComponents ( ) ;
1015
- fixture = TestBed . createComponent ( DelayedInitializationVirtualScroll ) ;
1016
- testComponent = fixture . componentInstance ;
1017
- viewport = testComponent . viewport ;
1018
- } ) ,
1019
- ) ;
1005
+ beforeEach ( waitForAsync ( ( ) => {
1006
+ TestBed . configureTestingModule ( {
1007
+ imports : [ ScrollingModule , CommonModule ] ,
1008
+ declarations : [ DelayedInitializationVirtualScroll ] ,
1009
+ } ) . compileComponents ( ) ;
1010
+ fixture = TestBed . createComponent ( DelayedInitializationVirtualScroll ) ;
1011
+ testComponent = fixture . componentInstance ;
1012
+ viewport = testComponent . viewport ;
1013
+ } ) ) ;
1020
1014
1021
1015
it ( 'should call custom trackBy when virtual for is added after init' , fakeAsync ( ( ) => {
1022
1016
finishInit ( fixture ) ;
@@ -1037,17 +1031,15 @@ describe('CdkVirtualScrollViewport', () => {
1037
1031
let testComponent : VirtualScrollWithAppendOnly ;
1038
1032
let viewport : CdkVirtualScrollViewport ;
1039
1033
1040
- beforeEach (
1041
- waitForAsync ( ( ) => {
1042
- TestBed . configureTestingModule ( {
1043
- imports : [ ScrollingModule , CommonModule ] ,
1044
- declarations : [ VirtualScrollWithAppendOnly ] ,
1045
- } ) . compileComponents ( ) ;
1046
- fixture = TestBed . createComponent ( VirtualScrollWithAppendOnly ) ;
1047
- testComponent = fixture . componentInstance ;
1048
- viewport = testComponent . viewport ;
1049
- } ) ,
1050
- ) ;
1034
+ beforeEach ( waitForAsync ( ( ) => {
1035
+ TestBed . configureTestingModule ( {
1036
+ imports : [ ScrollingModule , CommonModule ] ,
1037
+ declarations : [ VirtualScrollWithAppendOnly ] ,
1038
+ } ) . compileComponents ( ) ;
1039
+ fixture = TestBed . createComponent ( VirtualScrollWithAppendOnly ) ;
1040
+ testComponent = fixture . componentInstance ;
1041
+ viewport = testComponent . viewport ;
1042
+ } ) ) ;
1051
1043
1052
1044
it ( 'should not remove item that have already been rendered' , fakeAsync ( ( ) => {
1053
1045
finishInit ( fixture ) ;
0 commit comments