test(ngcc): use `isNamedDeclaration()` helper to simplify tests (#38959) (#39272)
Previously these tests were checking multiple specific expression types. The new helper function is more general and will also support `PropertyAccessExpression` nodes for `InlineDeclaration` types. PR Close #38959 PR Close #39272
Showing
- packages/compiler-cli/ngcc/test/analysis/module_with_providers_analyzer_spec.ts 3 additions, 5 deletions...ngcc/test/analysis/module_with_providers_analyzer_spec.ts
- packages/compiler-cli/src/ngtsc/testing/index.ts 1 addition, 1 deletionpackages/compiler-cli/src/ngtsc/testing/index.ts
- packages/compiler-cli/src/ngtsc/testing/src/utils.ts 6 additions, 3 deletionspackages/compiler-cli/src/ngtsc/testing/src/utils.ts
Please register or sign in to comment