I am really confused about this. When I have console.log(imagediff.isImage(chartImage)) it returns true, but this expect(image1).toImageDiffEqual(image2) returns an error saying "Submitted object was not an image". I also get an error when doing imagediff.equal(chartImage, image2) and that one says "Image or Canvas expected".
I'm using "imagediff": "^1.0.6", "canvas": "^1.2.7" and node v0.12.2, and I'm using a Mac. Can I get some help?
I am really confused about this. When I have
console.log(imagediff.isImage(chartImage))it returnstrue, but thisexpect(image1).toImageDiffEqual(image2)returns an error saying "Submitted object was not an image". I also get an error when doingimagediff.equal(chartImage, image2)and that one says "Image or Canvas expected".I'm using
"imagediff": "^1.0.6","canvas": "^1.2.7"andnode v0.12.2, and I'm using a Mac. Can I get some help?