(input: string)
| 234 | |
| 235 | describe('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'); |
no test coverage detected
searching dependent graphs…