MCPcopy Index your code
hub / github.com/angular/angular / TestStrategyFactory

Class TestStrategyFactory

packages/elements/test/create-custom-element_spec.ts:436–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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});

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…