Skip to content

Commit 1020602

Browse files
authored
build: fix formatting error (#24667)
Fixes an error in one of the test files that is breaking the CI.
1 parent 71bdb14 commit 1020602

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);
@@ -969,14 +967,12 @@ describe('CdkVirtualScrollViewport', () => {
969967
let testComponent: VirtualScrollWithItemInjectingViewContainer;
970968
let viewport: CdkVirtualScrollViewport;
971969

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

981977
beforeEach(() => {
982978
fixture = TestBed.createComponent(VirtualScrollWithItemInjectingViewContainer);
@@ -1006,17 +1002,15 @@ describe('CdkVirtualScrollViewport', () => {
10061002
let testComponent: DelayedInitializationVirtualScroll;
10071003
let viewport: CdkVirtualScrollViewport;
10081004

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

10211015
it('should call custom trackBy when virtual for is added after init', fakeAsync(() => {
10221016
finishInit(fixture);
@@ -1037,17 +1031,15 @@ describe('CdkVirtualScrollViewport', () => {
10371031
let testComponent: VirtualScrollWithAppendOnly;
10381032
let viewport: CdkVirtualScrollViewport;
10391033

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

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

0 commit comments

Comments
 (0)