mirror of https://github.com/rancher/dashboard.git
13 lines
353 B
TypeScript
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);
|
|
});
|
|
});
|