Skip to content

MrP/node-jasmine-file-matcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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');
    });
});

About

Matches a file to another file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published