Skip to content
Permalink
Browse files
fix tests for standard-engine 11
  • Loading branch information
feross committed Jul 12, 2019
1 parent ae04dbb commit 2f3c712d728b4c151844f8ee0d7595b939ba45b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
@@ -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)
@@ -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)
@@ -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)

0 comments on commit 2f3c712

Please sign in to comment.