fix htmlparser tests

This commit is contained in:
James Roland Cabresos
2014-08-08 10:22:24 +08:00
parent 468e0bec32
commit cc05933bbc

View File

@@ -6,7 +6,7 @@ import htmlparser = require("htmlparser2");
var parser = new htmlparser.Parser({
onopentag: (name:string, attribs:{[s:string]:string}) => {
if(name === "script" && attribs.type === "text/javascript"){
if(name === "script" && attribs['type'] === "text/javascript"){
console.log("JS! Hooray!");
}
},