master
jonschlinkert 10 years ago
parent 4a45540faa
commit f2b689f578

@ -63,4 +63,9 @@ function resolve(options) {
var cwd = options.cwd ? path.resolve(options.cwd) : process.cwd(); var cwd = options.cwd ? path.resolve(options.cwd) : process.cwd();
return path.resolve(cwd, options.path || '.git/config'); return path.resolve(cwd, options.path || '.git/config');
} }
module.exports.resolve = resolve;
/**
* Expose `resolve`
*/
module.exports.resolve = resolve;

@ -7,7 +7,8 @@
'use strict'; 'use strict';
var should = require('should'); /* deps:mocha */
require('should');
var git = require('./'); var git = require('./');
@ -61,4 +62,4 @@ describe('resolve:', function () {
git.resolve({path: '.config', cwd: '/opt/config'}) git.resolve({path: '.config', cwd: '/opt/config'})
.should.equal(require('path').resolve('/opt/config','.config')) .should.equal(require('path').resolve('/opt/config','.config'))
}) })
}) })

Loading…
Cancel
Save