import { MockElement } from '../test-support'; import { SanitizeSink } from './sanitize-html-sink'; describe('Sanitize Sink', () => { describe('Given any HTML', () => { it.skip('removes all XSS vectors', () => { const el = MockElement(); const sink = SanitizeSink(el); const str = `
hello
`; const expected = `
hello
`; sink(str); expect(el.innerHTML).toEqual(expected); }); }); });