diff --git a/test.js b/test.js index da9ec3b..11df91a 100644 --- a/test.js +++ b/test.js @@ -36,9 +36,9 @@ describe('async:', function () { }); it('should throw an error when .git/config does not exist:', function (cb) { - git('foo', function (err, config) { + git({path: 'foo'}, function (err, config) { err.should.be.an.instanceof(Error); - err.message.should.equal('ENOENT, open \'foo/.git/config\''); + err.message.should.match(/ENOENT.*parse-git-config/); cb(); }); });