Skip to content

Commit

Permalink
ensure bin/license-checker works at a high-level
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpvar committed Sep 11, 2015
1 parent a4bb437 commit 1d513bb
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/bin-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
var vows = require('vows'),
assert = require('assert'),
path = require('path'),
spawn = require('child_process').spawn;

var tests = {
bin: {
topic: function() {
var test = this;
spawn(
'node', [path.join(__dirname, '../bin/license-checker')], {
stdio: 'ignore'
}
).on('exit', function(code) {
test.callback(code === 0);
});
},
'exits with code 0': function(code) {
assert.ok(code);
},
}
};

vows.describe('license-checker').addBatch(tests).export(module);

0 comments on commit 1d513bb

Please sign in to comment.