-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Submitted object was not an image" when isImage = true? #54
Comments
Can you provide a minimal script, maybe with the image in question inlined via data URI (possibly using this example)? Thanks for the versions, that'll help debugging. |
Here's my relevant code. The data URI is extremely long.
|
So what I ended up doing was cloning this project and then using that |
It looks like I cannot run your example without further setup/code. It looks like upgrading the imagediff version might fix some of you issues? What version of Jasmine are you using. There is still an unmerged branch here, that offers jasmine 2.0 support. https://github.com/HumbleSoftware/js-imagediff/commits/v1.1 |
I am using Jasmine 2.0, so I'm using that branch now. I get a different error now, with
|
I believe this is caused by an update to the expected output format from custom matchers in recent Jasmine releases. I've fixed this on my fork, submitting a PR shortly. |
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?The text was updated successfully, but these errors were encountered: