(name: string)
| 82 | const created: string[] = []; |
| 83 | const destroyed: string[] = []; |
| 84 | const makeKey = (name: string) => |
| 85 | createManagedMetadataKey((_state, params: Signal<string | undefined>) => { |
| 86 | assertNotInReactiveContext(makeKey); |
| 87 | expect(inject(TOKEN)).toBe('provided'); |
| 88 | contexts.push(inject(Injector)); |
| 89 | created.push(name); |
| 90 | inject(DestroyRef).onDestroy(() => destroyed.push(name)); |
| 91 | return params; |
| 92 | }); |
| 93 | const FIRST = makeKey('first'); |
| 94 | const SECOND = makeKey('second'); |
| 95 | const model = signal([{value: 'a'}, {value: 'b'}]); |
no test coverage detected