Skip to content

Commit

Permalink
test: fix type error on older versions of angular
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 7c816e6 commit 55fe53a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/issue-8884/test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ describe('issue-8884', () => {
describe('when standalone component does not import NgIf', () => {
@Component({
selector: 'app-standalone',
standalone: true,
['standalone' as never]: true,
template: `<ng-template [ngTemplateOutlet]="content" />`,
})
class StandaloneComponent {
@ContentChild('content')
@ContentChild('content', {} as never)
content?: TemplateRef<any>;
}

Expand All @@ -46,7 +46,7 @@ describe('issue-8884', () => {
template: `<ng-template [ngTemplateOutlet]="content" />`,
})
class TargetComponent {
@ContentChild('content')
@ContentChild('content', {} as never)
content?: TemplateRef<any>;
}

Expand Down

0 comments on commit 55fe53a

Please sign in to comment.