Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

image-matcher

ota-meshi26MIT0.3.0

image matcher utility with Jasmine

image, test, util

readme

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