Skip to content

Commit

Permalink
standard
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Jul 5, 2019
1 parent d33bfe9 commit 6e077d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/clone.js
Expand Up @@ -77,23 +77,23 @@ test('test github repos that use `standard`', function (t) {
}

function gitClone (cb) {
var args = [ 'clone', '--depth', 1, url, path.join(TMP, name) ]
var args = ['clone', '--depth', 1, url, path.join(TMP, name)]
spawn(GIT, args, { stdio: 'ignore' }, function (err) {
if (err) err.message += ' (git clone) (' + name + ')'
cb(err)
})
}

function gitPull (cb) {
var args = [ 'pull' ]
var args = ['pull']
spawn(GIT, args, { cwd: folder, stdio: 'ignore' }, function (err) {
if (err) err.message += ' (git pull) (' + name + ')'
cb(err)
})
}

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

function runStandardFix (cb) {
var args = [ '--fix', '--verbose' ]
var args = ['--fix', '--verbose']
if (pkg.args) args.push.apply(args, pkg.args)
spawn(STANDARD, args, { cwd: folder }, function (err) {
var str = name + ' (' + pkg.repo + ') ** with --fix'
Expand All @@ -121,7 +121,7 @@ test('test github repos that use `standard`', function (t) {
}

function runGitReset (cb) {
var args = [ 'reset', '--hard' ]
var args = ['reset', '--hard']
spawn(GIT, args, { cwd: folder }, function (err) {
if (err) err.message += ' (git reset) (' + name + ')'
// Fatal error if can't git reset
Expand Down

0 comments on commit 6e077d7

Please sign in to comment.