| 434 | } |
| 435 | |
| 436 | class TestStrategyFactory implements NgElementStrategyFactory { |
| 437 | testStrategy = new TestStrategy(); |
| 438 | |
| 439 | create(injector: Injector): NgElementStrategy { |
| 440 | // Although not used by the `TestStrategy`, verify that the injector is provided. |
| 441 | if (!injector) { |
| 442 | throw new Error( |
| 443 | 'Expected injector to be passed to `TestStrategyFactory#create()`, but received ' + |
| 444 | `value of type ${typeof injector}: ${injector}`, |
| 445 | ); |
| 446 | } |
| 447 | |
| 448 | return this.testStrategy; |
| 449 | } |
| 450 | } |
| 451 | }); |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…