test: clean up explicit dynamic query usages (#33015)

Cleans up all the places where we explicitly set `static: false` on queries.

PR Close #33015
This commit is contained in:
crisbeto
2019-10-05 10:04:54 +02:00
committed by Matias Niemelä
parent 7e64bbe5a8
commit 9d54679e66
46 changed files with 273 additions and 279 deletions

View File

@ -183,7 +183,7 @@ describe('Google3 undecorated classes with decorated fields TSLint rule', () =>
import { ViewChild, ElementRef } from '@angular/core';
export class Base {
@ViewChild('button', { static: false }) button: ElementRef<HTMLElement>;
@ViewChild('button') button: ElementRef<HTMLElement>;
}
`);
@ -209,7 +209,7 @@ describe('Google3 undecorated classes with decorated fields TSLint rule', () =>
import { ContentChild, ElementRef } from '@angular/core';
export class Base {
@ContentChild('button', { static: false }) button: ElementRef<HTMLElement>;
@ContentChild('button') button: ElementRef<HTMLElement>;
}
`);

View File

@ -159,7 +159,7 @@ describe('Undecorated classes with decorated fields migration', () => {
import { ViewChild, ElementRef } from '@angular/core';
export class Base {
@ViewChild('button', { static: false }) button: ElementRef<HTMLElement>;
@ViewChild('button') button: ElementRef<HTMLElement>;
}
`);
@ -185,7 +185,7 @@ describe('Undecorated classes with decorated fields migration', () => {
import { ContentChild, ElementRef } from '@angular/core';
export class Base {
@ContentChild('button', { static: false }) button: ElementRef<HTMLElement>;
@ContentChild('button') button: ElementRef<HTMLElement>;
}
`);