Chai helper for visually comparing HTML pages.
npm install chai-resemble
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);
});
});
Copyright (c) 2019 Giacomo Martino. See the LICENSE file for license rights and limitations (MIT).