chai-resemble

Chai helper for visually comparing HTML pages

chai-resemble

Chai helper for visually comparing HTML pages.

npm install chai-resemble

Note: to use this helper, you should also have PhantomJS installed.

var chai = require('chai'),
    resemble = require('chai-resemble.js');
 
chai.use(resemble);
 
describe('chai-resemble', function () {
    it('Should resemble the original', function (done) {
        expect('http://google.com').to.resemble('http://google.com', done);
    });
});

Copyright (c) 2013 Giacomo Martino. See the LICENSE file for license rights and limitations (MIT).