| 148 | describe('dependency injection', () => { |
| 149 | it('should be safe to inject a provided service', () => { |
| 150 | @Injectable() |
| 151 | class Service { |
| 152 | constructor() { |
| 153 | expect(getActiveConsumer()).toBe(null); |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | const injector = createEnvironmentInjector([Service], TestBed.inject(EnvironmentInjector)); |
| 158 | expectNotToThrowInReactiveContext(() => injector.get(Service)); |
nothing calls this directly
no test coverage detected