Skip to content

Commit 5971037

Browse files
crisbetodevversion
authored andcommitted
test(compiler): update failing tests (#58217)
Fixes some tests that started failing, because #58154 made it so placeholder-only messages are extracted while #58176 added some tests that only contain placeholders. PR Close #58217
1 parent e5a6165 commit 5971037

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/compiler/test/i18n/i18n_parser_spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,27 +348,27 @@ describe('I18nParser', () => {
348348
});
349349

350350
it('should preserve whitespace when preserving significant whitespace', () => {
351-
const html = '<div i18n="m|d">{{ foo }}</div>';
351+
const html = '<div i18n="m|d">hello {{ foo }}</div>';
352352
expect(
353353
_humanizeMessages(
354354
html,
355355
/* implicitTags */ undefined,
356356
/* implicitAttrs */ undefined,
357357
/* preserveSignificantWhitespace */ true,
358358
),
359-
).toEqual([[['[<ph name="INTERPOLATION"> foo </ph>]'], 'm', 'd', '']]);
359+
).toEqual([[['[hello , <ph name="INTERPOLATION"> foo </ph>]'], 'm', 'd', '']]);
360360
});
361361

362362
it('should normalize whitespace when not preserving significant whitespace', () => {
363-
const html = '<div i18n="m|d">{{ foo }}</div>';
363+
const html = '<div i18n="m|d">hello {{ foo }}</div>';
364364
expect(
365365
_humanizeMessages(
366366
html,
367367
/* implicitTags */ undefined,
368368
/* implicitAttrs */ undefined,
369369
/* preserveSignificantWhitespace */ false,
370370
),
371-
).toEqual([[['[, <ph name="INTERPOLATION">foo</ph>, ]'], 'm', 'd', '']]);
371+
).toEqual([[['[hello , <ph name="INTERPOLATION">foo</ph>, ]'], 'm', 'd', '']]);
372372
});
373373
});
374374
});

0 commit comments

Comments
 (0)