dashboard/shell/utils/__tests__/string.test.ts

13 lines
353 B
TypeScript

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 = `<i>whatever</i>`;
const result = decodeHtml(text);
expect(result).toStrictEqual(expectation);
});
});