Skip to content

Commit

Permalink
chore: ignore coverage for line only reachable in older angular versions
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrina-10kc authored and satanTime committed Aug 25, 2024
1 parent 55fe53a commit 777940f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const viewChildTemplate = (selector: string, key: string): string => {
const condition = `ngMocksRender_${key}_${selector}`;
return hasControlFlow
? `@if (${condition}) { ${content} }`
: `<ng-template [ngIf]="${condition}">${content}</ng-template>`;
: /* istanbul ignore next */ `<ng-template [ngIf]="${condition}">${content}</ng-template>`;
};

const isTemplateRefQuery = (query: Query): boolean => {
Expand Down

0 comments on commit 777940f

Please sign in to comment.