From 8c4bd61b2fe849aa44a50f4db3f1c81c42541b54 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Tue, 11 Jun 2019 07:30:11 +0200 Subject: [PATCH] test(core): add missing static flag to view_insertion test view queries (#30967) 17d87d4e10c877933e0a78cbe75031cbdba3d486 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 --- .../core/test/acceptance/view_insertion_spec.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 !;