| 414 | |
| 415 | it('should be rejected by @Component.providers', () => { |
| 416 | @Component({ |
| 417 | providers: [environmentProviders as any], |
| 418 | standalone: false, |
| 419 | |
| 420 | changeDetection: ChangeDetectionStrategy.Eager, |
| 421 | }) |
| 422 | class TestCmp { |
| 423 | readonly token = inject(TOKEN); |
| 424 | } |
| 425 | |
| 426 | expect(() => TestBed.createComponent(TestCmp)).toThrowError(/NG0207/); |
| 427 | }); |
nothing calls this directly
no test coverage detected
searching dependent graphs…