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

Please sign in to comment.