Skip to content

giakki/chai-resemble

Repository files navigation

chai-resemble

NPM version Build Status Coverage Status Dependency Status devDependency Status

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).

About

Chai helper for visually comparing HTML pages

Resources

License

Stars

Watchers

Forks

Packages

No packages published