node-jasmine-file-matcher

0.1.6 • Public • Published

node-jasmine-file-matcher

Matches a file's contents to another file's contents.

Install with:

npm install --save-dev node-jasmine-file-matcher

Then use like this:

var fileMatcher = require('node-jasmine-file-matcher');

describe('check those files', function () {
    beforeEach(function() {
        jasmine.addMatchers(fileMatcher);
    });

    it('checks them', function () {
        expect('path/to/actualFile.txt').toEqualFile('path/to/expectedFile.txt');
    });
});

Readme

Keywords

Package Sidebar

Install

npm i node-jasmine-file-matcher

Weekly Downloads

0

Version

0.1.6

License

MIT

Unpacked Size

3.77 kB

Total Files

10

Last publish

Collaborators

  • mrp