import { escapeCSS, escapeHTML } from 'lib/util/EscapeUtil'; describe('util/EscapeUtil', function() { it('escapeCSS', function() { expect(escapeCSS('..ab')).to.eql('\\.\\.ab'); }); it('escapeHTML', function() { var htmlStr = ''; expect(escapeHTML(htmlStr)).to.eql('<video src=1 onerror=alert(\'hueh\')>'); }); });