diff --git a/packages/core/test/acceptance/view_insertion_spec.ts b/packages/core/test/acceptance/view_insertion_spec.ts index e6cfb544d5..f502e55133 100644 --- a/packages/core/test/acceptance/view_insertion_spec.ts +++ b/packages/core/test/acceptance/view_insertion_spec.ts @@ -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 = null !; view0: EmbeddedViewRef = 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 = null !; view0: EmbeddedViewRef = 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 = null !; view0: EmbeddedViewRef = 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 = null !; view0: EmbeddedViewRef = null !;