Skip to content

Commit

Permalink
fix tests for standard-engine 11
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Jul 12, 2019
1 parent ae04dbb commit 2f3c712
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/api.js
Expand Up @@ -3,7 +3,7 @@ var test = require('tape')

test('api: lintFiles', function (t) {
t.plan(3)
standard.lintFiles([], { cwd: 'bin' }, function (err, result) {
standard.lintFiles(['bin/cmd.js'], {}, function (err, result) {
t.error(err, 'no error while linting')
t.equal(typeof result, 'object', 'result is an object')
t.equal(result.errorCount, 0)
Expand Down
8 changes: 4 additions & 4 deletions test/clone.js
Expand Up @@ -93,9 +93,9 @@ test('test github repos that use `standard`', function (t) {
}

function runStandard (cb) {
var args = ['--verbose']
var args = [STANDARD, '--verbose']
if (pkg.args) args.push.apply(args, pkg.args)
spawn(STANDARD, args, { cwd: folder }, function (err) {
spawn('node', args, { cwd: folder }, function (err) {
var str = name + ' (' + pkg.repo + ')'
if (err && argv.fix) {
t.comment('Attempting --fix on ' + str)
Expand All @@ -111,9 +111,9 @@ test('test github repos that use `standard`', function (t) {
}

function runStandardFix (cb) {
var args = ['--fix', '--verbose']
var args = [STANDARD, '--fix', '--verbose']
if (pkg.args) args.push.apply(args, pkg.args)
spawn(STANDARD, args, { cwd: folder }, function (err) {
spawn('node', args, { cwd: folder }, function (err) {
var str = name + ' (' + pkg.repo + ') ** with --fix'
if (err) { t.fail(str) } else { t.pass(str) }
runGitReset(cb)
Expand Down

0 comments on commit 2f3c712

Please sign in to comment.