| 409 | |
| 410 | it('should be rejected by @Component.providers', () => { |
| 411 | @Component({ |
| 412 | providers: [environmentProviders as any], |
| 413 | }) |
| 414 | class TestCmp { |
| 415 | readonly token = inject(TOKEN); |
| 416 | } |
| 417 | |
| 418 | expect(() => TestBed.createComponent(TestCmp)).toThrowError(/NG0207/); |
| 419 | }); |
nothing calls this directly
no test coverage detected