test(core): add missing static flag to view_insertion test view queries (#30967)
17d87d4e10
has been created before the changes
to the `@ViewChild` and `@ContentChild` decorators. Meaning that it still uses the queries
without the `static` flag. This results in failures in `master` because #30625 has been merged.
PR Close #30967
This commit is contained in:
parent
230e9766f6
commit
8c4bd61b2f
|
@ -31,10 +31,10 @@ describe('view insertion', () => {
|
|||
`
|
||||
})
|
||||
class App {
|
||||
@ViewChild('container', {read: ViewContainerRef})
|
||||
@ViewChild('container', {read: ViewContainerRef, static: true})
|
||||
container: ViewContainerRef = null !;
|
||||
|
||||
@ViewChild('simple', {read: TemplateRef})
|
||||
@ViewChild('simple', {read: TemplateRef, static: true})
|
||||
simple: TemplateRef<any> = null !;
|
||||
|
||||
view0: EmbeddedViewRef<any> = null !;
|
||||
|
@ -89,10 +89,10 @@ describe('view insertion', () => {
|
|||
`
|
||||
})
|
||||
class App {
|
||||
@ViewChild('container', {read: ViewContainerRef})
|
||||
@ViewChild('container', {read: ViewContainerRef, static: false})
|
||||
container: ViewContainerRef = null !;
|
||||
|
||||
@ViewChild('empty', {read: TemplateRef})
|
||||
@ViewChild('empty', {read: TemplateRef, static: false})
|
||||
empty: TemplateRef<any> = null !;
|
||||
|
||||
view0: EmbeddedViewRef<any> = null !;
|
||||
|
@ -139,10 +139,10 @@ describe('view insertion', () => {
|
|||
`
|
||||
})
|
||||
class Comp {
|
||||
@ViewChild('container', {read: ViewContainerRef})
|
||||
@ViewChild('container', {read: ViewContainerRef, static: false})
|
||||
container: ViewContainerRef = null !;
|
||||
|
||||
@ViewChild('projection', {read: TemplateRef})
|
||||
@ViewChild('projection', {read: TemplateRef, static: false})
|
||||
projection: TemplateRef<any> = null !;
|
||||
|
||||
view0: EmbeddedViewRef<any> = null !;
|
||||
|
@ -200,10 +200,10 @@ describe('view insertion', () => {
|
|||
`
|
||||
})
|
||||
class App {
|
||||
@ViewChild('container', {read: ViewContainerRef})
|
||||
@ViewChild('container', {read: ViewContainerRef, static: false})
|
||||
container: ViewContainerRef = null !;
|
||||
|
||||
@ViewChild('subContainer', {read: TemplateRef})
|
||||
@ViewChild('subContainer', {read: TemplateRef, static: false})
|
||||
subContainer: TemplateRef<any> = null !;
|
||||
|
||||
view0: EmbeddedViewRef<any> = null !;
|
||||
|
|
Loading…
Reference in New Issue