Closed mordrax closed 6 years ago
It seems isEqual doesn't do what I think it does:
b = new HtmlDiffer() HtmlDiffer {options: {…}} b.diffHtml("<div></div>", "<span></span>") (7) [{…}, {…}, {…}, {…}, {…}, {…}, {…}] b.isEqual() true
Shouldn't this be false? I'm getting this no matter what html I put in.
Stupid me, using isEqual without argument.
Sucks that it defaults to true rather than throwing an error. Silently passes all my tests.
It seems isEqual doesn't do what I think it does:
Shouldn't this be false? I'm getting this no matter what html I put in.