chai-resemble
v2.0.0
Published
Chai helper for visually comparing HTML pages
Downloads
73
Maintainers
Readme
chai-resemble
Chai helper for visually comparing HTML pages.
Installation
npm install chai-resemble
Usage
var chai = require('chai'),
resemble = require('chai-resemble.js');
chai.use(resemble);
describe('chai-resemble', function() {
it('Should resemble the original', function(done) {
expect('https://www.google.com').to.resemble('https://www.google.com', done);
});
// Specify where to store files.
it('Should resemble the original', function(done) {
expect('https://www.google.com').to.resemble('https://www.google.com' { name: 'filename', outDir: 'directory' }, done);
});
});
License
Copyright (c) 2019 Giacomo Martino. See the LICENSE file for license rights and limitations (MIT).