( comp: IndexedComponent, kind: IdentifierKind, name: string, )
| 128 | } |
| 129 | |
| 130 | function getIdentifiers<T extends TopLevelIdentifier = TopLevelIdentifier>( |
| 131 | comp: IndexedComponent, |
| 132 | kind: IdentifierKind, |
| 133 | name: string, |
| 134 | ): T[] { |
| 135 | const identifiers = Array.from(comp.template.identifiers); |
| 136 | return identifiers.filter((id) => id.kind === kind && id.name === name) as T[]; |
| 137 | } |
| 138 | |
| 139 | describe('Indexer', () => { |
| 140 | it('should index component properties', async () => { |
no test coverage detected