image-matcher

0.3.0 • Public • Published

image-matcher

npm npm npm npm npm Build Status
NPM Greenkeeper badge

Unit Testing

image-matcher allows you to test Canvas and other image. It will provide Jasmine matcher for that.  can set a tolerance and perform comparison test.

toMatchImage(expected, {
	tolerance = 0, // accepts tolerance in pixels
	delta = 0, // the maximum color distance between actual and expected
	blurLevel = 0, // test blur level
} = {})

CDN

<script src="https://unpkg.com/image-matcher@0.1"></script>

examples

Supported

jasmine >= 2.0.4

Readme

Keywords

Package Sidebar

Install

npm i image-matcher

Weekly Downloads

10

Version

0.3.0

License

MIT

Unpacked Size

108 kB

Total Files

17

Last publish

Collaborators

  • ota-meshi