Skip to content

build: fix formatting error #24667

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 30 additions & 38 deletions src/cdk/scrolling/virtual-scroll-viewport.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,12 @@ describe('CdkVirtualScrollViewport', () => {
let testComponent: FixedSizeVirtualScroll;
let viewport: CdkVirtualScrollViewport;

beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
imports: [ScrollingModule],
declarations: [FixedSizeVirtualScroll],
}).compileComponents();
}),
);
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [ScrollingModule],
declarations: [FixedSizeVirtualScroll],
}).compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(FixedSizeVirtualScroll);
Expand Down Expand Up @@ -969,14 +967,12 @@ describe('CdkVirtualScrollViewport', () => {
let testComponent: VirtualScrollWithItemInjectingViewContainer;
let viewport: CdkVirtualScrollViewport;

beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
imports: [ScrollingModule],
declarations: [VirtualScrollWithItemInjectingViewContainer, InjectsViewContainer],
}).compileComponents();
}),
);
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [ScrollingModule],
declarations: [VirtualScrollWithItemInjectingViewContainer, InjectsViewContainer],
}).compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(VirtualScrollWithItemInjectingViewContainer);
Expand Down Expand Up @@ -1006,17 +1002,15 @@ describe('CdkVirtualScrollViewport', () => {
let testComponent: DelayedInitializationVirtualScroll;
let viewport: CdkVirtualScrollViewport;

beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
imports: [ScrollingModule, CommonModule],
declarations: [DelayedInitializationVirtualScroll],
}).compileComponents();
fixture = TestBed.createComponent(DelayedInitializationVirtualScroll);
testComponent = fixture.componentInstance;
viewport = testComponent.viewport;
}),
);
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [ScrollingModule, CommonModule],
declarations: [DelayedInitializationVirtualScroll],
}).compileComponents();
fixture = TestBed.createComponent(DelayedInitializationVirtualScroll);
testComponent = fixture.componentInstance;
viewport = testComponent.viewport;
}));

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

beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
imports: [ScrollingModule, CommonModule],
declarations: [VirtualScrollWithAppendOnly],
}).compileComponents();
fixture = TestBed.createComponent(VirtualScrollWithAppendOnly);
testComponent = fixture.componentInstance;
viewport = testComponent.viewport;
}),
);
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [ScrollingModule, CommonModule],
declarations: [VirtualScrollWithAppendOnly],
}).compileComponents();
fixture = TestBed.createComponent(VirtualScrollWithAppendOnly);
testComponent = fixture.componentInstance;
viewport = testComponent.viewport;
}));

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