git-validate
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -137,2 +137,5 @@ var Fs = require('fs'); | ||
} | ||
else { | ||
throw new Error('Unable to find a .git folder for this project'); | ||
} | ||
@@ -139,0 +142,0 @@ return root; |
{ | ||
"name": "git-validate", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "the extensible core of precommit-hook", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -160,5 +160,8 @@ var Utils = require('../lib/utils'); | ||
it('returns undefined when no git root exists', function (done) { | ||
it('can return an error when no git root exists', function (done) { | ||
expect(Utils.findGitRoot(Path.resolve(__dirname, '..', '..'))).to.be.undefined(); | ||
expect(function () { | ||
Utils.findGitRoot(Path.resolve(__dirname, '..', '..')); | ||
}).to.throw('Unable to find a .git folder for this project'); | ||
done(); | ||
@@ -165,0 +168,0 @@ }); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30795
369