UNPKG

ember-cli-ajh

Version:

Command line tool for developing ambitious ember.js apps

19 lines (14 loc) 480 B
'use strict'; var expect = require('chai').expect; var fs = require('fs'); /* Assert that a given file matches another. @method assertFileEqual @param {String} pathToActual @param {String} pathToExpected */ module.exports = function assertFileEquals(pathToActual, pathToExpected) { var actual = fs.readFileSync(pathToActual, { encoding: 'utf-8' }); var expected = fs.readFileSync(pathToExpected, { encoding: 'utf-8' }); expect(actual).to.equal(expected); };