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 committed Jul 23, 2024
1 parent b865b06 commit 0e77c25
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 0e77c25

Please sign in to comment.