MCPcopy Create free account
hub / github.com/angular/angular / TestStrategyFactory

Class TestStrategyFactory

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

Source from the content-addressed store, hash-verified

429 }
430
431 class TestStrategyFactory implements NgElementStrategyFactory {
432 testStrategy = new TestStrategy();
433
434 create(injector: Injector): NgElementStrategy {
435 // Although not used by the `TestStrategy`, verify that the injector is provided.
436 if (!injector) {
437 throw new Error(
438 'Expected injector to be passed to `TestStrategyFactory#create()`, but received ' +
439 `value of type ${typeof injector}: ${injector}`,
440 );
441 }
442
443 return this.testStrategy;
444 }
445 }
446});

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected