var sanitize = require('../lib/xss').sanitizeHTML;
var assert = require('assert');
function basicTest() {
assert(sanitize("< script src = bad.js>blah") ===
"[tag removed]blah[tag removed]");
assert(sanitize("< img src=asdf onerror='alert(\"xss\")'>") ===
"");
assert(sanitize("") ===
"");
assert(sanitize("");
assert(sanitize(">") ===
">");
}
basicTest();
console.log("Tests passed.");