hasbin
Advanced tools
Comparing version 1.1.0 to 1.1.1
# History | ||
## 1.1.1 (2015-09-08) | ||
* Update dependencies | ||
* Add code coverage reporting | ||
## 1.1.0 (2015-07-06) | ||
@@ -5,0 +10,0 @@ |
{ | ||
"name": "hasbin", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
@@ -25,6 +25,7 @@ "description": "Check whether a binary exists in the PATH environment variable", | ||
"dependencies": { | ||
"async": "~1.3" | ||
"async": "~1.4" | ||
}, | ||
"devDependencies": { | ||
"jscs": "^1", | ||
"istanbul": "~0.3", | ||
"jscs": "^2", | ||
"jshint": "^2", | ||
@@ -31,0 +32,0 @@ "mocha": "^2", |
@@ -82,2 +82,23 @@ // jshint maxstatements: false | ||
describe('hasbin() without PATH', function () { | ||
var oldPath; | ||
beforeEach(function (done) { | ||
oldPath = process.env.PATH; | ||
delete process.env.PATH; | ||
hasbin('foo', function () { | ||
done(); | ||
}); | ||
}); | ||
afterEach(function () { | ||
process.env.PATH = oldPath; | ||
}); | ||
it('should call `fs.stat()` for the binary alone', function () { | ||
assert.callCount(fs.stat, 1); | ||
assert.calledWith(fs.stat, 'foo'); | ||
}); | ||
}); | ||
describe('hasbin() with PATHEXT', function () { | ||
@@ -106,3 +127,2 @@ beforeEach(function (done) { | ||
it('should have a `sync` method', function () { | ||
@@ -109,0 +129,0 @@ assert.isFunction(hasbin.sync); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
22030
15
358
7
9
+ Addedasync@1.4.2(transitive)
- Removedasync@1.3.0(transitive)
Updatedasync@~1.4