test(ivy): update ngI18nClosureMode flag usage in tests (#34224)

Commit that updated i18n message ids rendering (https://github.com/angular/angular/commit/e524322c43ce31c5c6d45bcdc320338b9bd66249) also introduced a couple tests that relied on a previous version of `ngI18nClosureMode` flag format. The `ngI18nClosureMode` usage format was changed in the followup commit (https://github.com/angular/angular/commit/c4ce24647bb45b54db9ad37a21c36e65658fea68) and triggered a problem with the mentioned tests. This commit updates the tests to a new `ngI18nClosureMode` flag usage format.

PR Close #34224
This commit is contained in:
Andrew Kushnir
2019-12-03 17:07:09 -08:00
committed by Misko Hevery
parent 5e94f9a100
commit 634887c0e7
@@ -3463,7 +3463,7 @@ describe('i18n support in the template compiler', () => {
const output = String.raw `
var $I18N_0$;
if (ngI18nClosureMode) { … }
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { … }
else {
$I18N_0$ = $localize \`:␟ec93160d6d6a8822214060dd7938bf821c22b226␟6795333002533525253:Some Message\`;
}
@@ -3478,7 +3478,7 @@ describe('i18n support in the template compiler', () => {
const output = String.raw `
var $I18N_0$;
if (ngI18nClosureMode) { … }
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { … }
else {
$I18N_0$ = $localize \`:␟ec93160d6d6a8822214060dd7938bf821c22b226␟6795333002533525253:Some Message\`;
}