From 777940f5e4994cf2265e921ca5022427da767379 Mon Sep 17 00:00:00 2001 From: Sabrina Mack Date: Sat, 22 Jun 2024 17:50:21 -0700 Subject: [PATCH] chore: ignore coverage for line only reachable in older angular versions --- .../ng-mocks/src/lib/mock-component/render/generate-template.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ng-mocks/src/lib/mock-component/render/generate-template.ts b/libs/ng-mocks/src/lib/mock-component/render/generate-template.ts index 5ae5e13630..f3ae01ddf0 100644 --- a/libs/ng-mocks/src/lib/mock-component/render/generate-template.ts +++ b/libs/ng-mocks/src/lib/mock-component/render/generate-template.ts @@ -8,7 +8,7 @@ const viewChildTemplate = (selector: string, key: string): string => { const condition = `ngMocksRender_${key}_${selector}`; return hasControlFlow ? `@if (${condition}) { ${content} }` - : `${content}`; + : /* istanbul ignore next */ `${content}`; }; const isTemplateRefQuery = (query: Query): boolean => {