-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix broken darwin url, now using tar.gz. Remove unused code in test. …
…Bump bin-check version
- Loading branch information
1 parent
a7d0311
commit 0753a22
Showing
3 changed files
with
8 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,13 @@ | ||
/*global afterEach,beforeEach,it*/ | ||
'use strict'; | ||
|
||
var assert = require('assert'); | ||
var execFile = require('child_process').execFile; | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
var binCheck = require('bin-check'); | ||
var BinBuild = require('bin-build'); | ||
var compareSize = require('compare-size'); | ||
var mkdirp = require('mkdirp'); | ||
var rimraf = require('rimraf'); | ||
var tmp = path.join(__dirname, 'tmp'); | ||
|
||
beforeEach(function () { | ||
mkdirp.sync(tmp); | ||
}); | ||
|
||
afterEach(function () { | ||
rimraf.sync(tmp); | ||
}); | ||
|
||
it('return path to binary and verify that it is working', function (cb) { | ||
binCheck(require('../'), ['-version'], function (err, works) { | ||
assert(!err); | ||
it('returns path to binary and verifies that it is working', function (cb) { | ||
binCheck(require('../'), ['--help']).then( function(works){ | ||
assert(works); | ||
cb(); | ||
}); | ||
} ) | ||
}); | ||
|
||
|