import { decodeHtml } from '@shell/utils/string'; describe('fx: decodeHtml', () => { it('should decode HTML values from escaped string into valid markup', () => { const text = '<i>whatever</i>'; const expectation = `whatever`; const result = decodeHtml(text); expect(result).toStrictEqual(expectation); }); });