Skip to content

Commit 3eeea56

Browse files
JeanMechealxhub
authored andcommitted
refactor(core): remove compileComponents invocations (angular#61032)
Those weren't necessary. PR Close angular#61032
1 parent 108043f commit 3eeea56

File tree

32 files changed

+75
-79
lines changed

32 files changed

+75
-79
lines changed

adev/shared-docs/components/navigation-list/navigation-list.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe('NavigationList', () => {
4343
{provide: NavigationState, useClass: FakeNavigationListState},
4444
provideZonelessChangeDetection(),
4545
],
46-
}).compileComponents();
46+
});
4747
fixture = TestBed.createComponent(NavigationList);
4848
fixture.componentRef.setInput('navigationItems', []);
4949

adev/shared-docs/components/table-of-contents/table-of-contents.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe('TableOfContents', () => {
4949
useValue: fakeWindow,
5050
},
5151
],
52-
}).compileComponents();
52+
});
5353

5454
const tableOfContentsLoaderSpy = TestBed.inject(TableOfContentsLoader);
5555
spyOn(tableOfContentsLoaderSpy, 'buildTableOfContent').and.returnValue();

adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ describe('DocViewer', () => {
8686
{provide: EXAMPLE_VIEWER_CONTENT_LOADER, useValue: exampleContentSpy},
8787
{provide: NavigationState, useValue: navigationStateSpy},
8888
],
89-
}).compileComponents();
89+
});
9090

9191
fixture = TestBed.createComponent(DocViewer);
9292
fixture.detectChanges();

adev/shared-docs/components/viewers/example-viewer/example-viewer.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('ExampleViewer', () => {
4040
{provide: EXAMPLE_VIEWER_CONTENT_LOADER, useValue: exampleContentSpy},
4141
{provide: ActivatedRoute, useValue: {snapshot: {fragment: 'fragment'}}},
4242
],
43-
}).compileComponents();
43+
});
4444
fixture = TestBed.createComponent(ExampleViewer);
4545
component = fixture.componentInstance;
4646
componentRef = fixture.componentRef;

adev/src/app/core/layout/navigation/navigation.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe('Navigation', () => {
4949
useValue: fakeSearch,
5050
},
5151
],
52-
}).compileComponents();
52+
});
5353

5454
TestBed.overrideProvider(ThemeManager, {useValue: fakeThemeManager});
5555
TestBed.overrideProvider(VersionManager, {useValue: fakeVersionManager});

adev/src/app/core/layout/progress-bar/progress-bar.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('ProgressBarComponent', () => {
1818
beforeEach(async () => {
1919
await TestBed.configureTestingModule({
2020
imports: [ProgressBarComponent, RouterTestingModule],
21-
}).compileComponents();
21+
});
2222

2323
fixture = TestBed.createComponent(ProgressBarComponent);
2424
component = fixture.componentInstance;

adev/src/app/editor/code-editor/code-editor.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ describe('CodeEditor', () => {
8080
},
8181
},
8282
],
83-
}).compileComponents();
83+
});
8484

8585
fixture = TestBed.createComponent(CodeEditor);
8686
loader = TestbedHarnessEnvironment.loader(fixture);

adev/src/app/editor/preview/preview.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe('Preview', () => {
4343
useValue: fakeNodeRuntimeState,
4444
},
4545
],
46-
}).compileComponents();
46+
});
4747

4848
const fixture = TestBed.createComponent(Preview);
4949

adev/src/app/editor/terminal/terminal.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('Terminal', () => {
3636
useValue: fakeWindow,
3737
},
3838
],
39-
}).compileComponents();
39+
});
4040

4141
fixture = TestBed.createComponent(Terminal);
4242
component = fixture.componentInstance;

adev/src/app/features/home/animation/animation.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ describe('Animation', () => {
8383
beforeEach(async () => {
8484
await TestBed.configureTestingModule({
8585
imports: [AnimationHost],
86-
}).compileComponents();
86+
});
8787

8888
fixture = TestBed.createComponent(AnimationHost);
8989
component = fixture.componentInstance;

0 commit comments

Comments
 (0)