diff --git a/src/index.js b/src/index.js index 3c17a52f..e1033742 100644 --- a/src/index.js +++ b/src/index.js @@ -20,6 +20,8 @@ function Repo (repoPath, options) { } } + this.path = repoPath + this.init = (config, callback) => { this.exists((err, exists) => { if (err) { throw err } diff --git a/test/repo-test.js b/test/repo-test.js index 279190de..e332442c 100644 --- a/test/repo-test.js +++ b/test/repo-test.js @@ -22,6 +22,10 @@ module.exports = function (repo) { }) }) + it('exposes the path', () => { + expect(typeof repo.path).to.be.equal('string') + }) + describe('locks', () => { it('lock, unlock', (done) => { repo.locks.lock((err) => {