Skip to content

Commit 945069f

Browse files
committed
build: fix formatting error (#24667)
Fixes an error in one of the test files that is breaking the CI. (cherry picked from commit 1020602)
1 parent 8140af4 commit 945069f

File tree

1 file changed

+30
-38
lines changed

1 file changed

+30
-38
lines changed

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

Lines changed: 30 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,12 @@ describe('CdkVirtualScrollViewport', () => {
3434
let testComponent: FixedSizeVirtualScroll;
3535
let viewport: CdkVirtualScrollViewport;
3636

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+
}));
4543

4644
beforeEach(() => {
4745
fixture = TestBed.createComponent(FixedSizeVirtualScroll);
@@ -953,14 +951,12 @@ describe('CdkVirtualScrollViewport', () => {
953951
let testComponent: VirtualScrollWithItemInjectingViewContainer;
954952
let viewport: CdkVirtualScrollViewport;
955953

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+
}));
964960

965961
beforeEach(() => {
966962
fixture = TestBed.createComponent(VirtualScrollWithItemInjectingViewContainer);
@@ -990,17 +986,15 @@ describe('CdkVirtualScrollViewport', () => {
990986
let testComponent: DelayedInitializationVirtualScroll;
991987
let viewport: CdkVirtualScrollViewport;
992988

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+
}));
1004998

1005999
it('should call custom trackBy when virtual for is added after init', fakeAsync(() => {
10061000
finishInit(fixture);
@@ -1021,17 +1015,15 @@ describe('CdkVirtualScrollViewport', () => {
10211015
let testComponent: VirtualScrollWithAppendOnly;
10221016
let viewport: CdkVirtualScrollViewport;
10231017

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+
}));
10351027

10361028
it('should not remove item that have already been rendered', fakeAsync(() => {
10371029
finishInit(fixture);

0 commit comments

Comments
 (0)