Skip to content

Instantly share code, notes, and snippets.

@kenany
Created August 2, 2013 21:49
Show Gist options
  • Save kenany/6143727 to your computer and use it in GitHub Desktop.
Save kenany/6143727 to your computer and use it in GitHub Desktop.
var isCorrectResponse = function(object, file, callback) {
object.should.be.an('object');
require('graceful-fs').readFile(file, 'utf8', function(error, data) {
if (error) return callback(error);
object.should.deep.equal(JSON.parse(data));
callback();
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment