import { sanitizeHTML } from './html' describe('String', () => { describe('html', () => { it('should removes attribute name starts with on', () => { const html = '
' expect(sanitizeHTML(html)).toBe('
') }) it('should removes attribute value starts with some word', () => { let html = '
' expect(sanitizeHTML(html)).toBe('
') html = '
' expect(sanitizeHTML(html)).toBe('
') html = '
' expect(sanitizeHTML(html)).toBe('
') }) }) })