From aa0dd0d5ff5b4d74c44b8b27dbcfc6114639b08c Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Mon, 27 Apr 2020 12:18:53 +0100 Subject: [PATCH] test(compiler): fix unwanted `!` operators (#36741) The `I18nComponent` was using `!` for some of its properties because it had not initialized them. This is now resolved by explictly marking them as optional. PR Close #36741 --- packages/compiler/test/i18n/integration_common.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/compiler/test/i18n/integration_common.ts b/packages/compiler/test/i18n/integration_common.ts index 65d6e6fb08..ac8cdf590d 100644 --- a/packages/compiler/test/i18n/integration_common.ts +++ b/packages/compiler/test/i18n/integration_common.ts @@ -19,12 +19,9 @@ import {expect} from '@angular/platform-browser/testing/src/matchers'; template: '', }) export class I18nComponent { - // TODO(issue/24571): remove '!'. - count!: number; - // TODO(issue/24571): remove '!'. - sex!: string; - // TODO(issue/24571): remove '!'. - sexB!: string; + count?: number; + sex?: string; + sexB?: string; response: any = {getItemsList: (): any[] => []}; }