mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
10 lines
308 B
TypeScript
10 lines
308 B
TypeScript
|
import { escapeHTML } from './html';
|
||
|
|
||
|
describe('escapeHTML', (): void => {
|
||
|
it('escapes html sequences', () => {
|
||
|
expect(escapeHTML(`<strong>'example'&"another/example"</strong>`)).toEqual(
|
||
|
'<strong>'example'&"another/example"</strong>'
|
||
|
);
|
||
|
});
|
||
|
});
|