HumbleSoftware / js-imagediff

JavaScript / Canvas based image diff utility with Jasmine matchers for testing canvas.
http://humblesoftware.github.com/js-imagediff/
MIT License
788 stars 99 forks source link

Jasmine custom matchers should support CLI reporters #50

Open cburgmer opened 9 years ago

cburgmer commented 9 years ago

It seems that the support for DOM nodes inside Jasmine's custom matchers message object really depends on the reporter the user is employing: https://github.com/jasmine/jasmine/issues/791

imagediff could probably account for that so that for CLI reporters a string is output instead. Right now the karma reporter for example crashes as indexOf() is not supported for a DOM node.