MCPcopy Index your code
hub / github.com/angular/angular / serialize

Function serialize

packages/compiler/test/render3/view/i18n_spec.ts:236–240  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

234
235describe('serializeI18nMessageForGetMsg', () => {
236 const serialize = (input: string): string => {
237 const tree = parse(`<div i18n>${input}</div>`);
238 const root = tree.nodes[0] as t.Element;
239 return serializeI18nMessageForGetMsg(root.i18n as i18n.Message);
240 };
241
242 it('should serialize plain text for `GetMsg()`', () => {
243 expect(serialize('Some text')).toEqual('Some text');

Callers 1

i18n_spec.tsFile · 0.70

Calls 4

serializeIcuNodeFunction · 0.90
parseFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…