diff --git a/bin/rocha.js b/bin/rocha.js index 7aa5cf0..31b03db 100755 --- a/bin/rocha.js +++ b/bin/rocha.js @@ -13,11 +13,11 @@ const help = [ require('simple-bin-help')({ minArguments: 3, packagePath: join(__dirname, '..', 'package.json'), - help: help + help }) // console.log(process.argv) const spec = process.argv.slice(2) const rocha = require('..') -rocha({ spec: spec }) +rocha({ spec }) diff --git a/src/order-of-tests-spec.js b/src/order-of-tests-spec.js index 5f0772b..38fd4c1 100644 --- a/src/order-of-tests-spec.js +++ b/src/order-of-tests-spec.js @@ -1,7 +1,7 @@ const la = require('lazy-ass') const is = require('check-more-types') const _ = require('lodash') -const {set, shuffle} = require('./order-of-tests') +const { set, shuffle } = require('./order-of-tests') const snapshot = require('snap-shot') const R = require('ramda') diff --git a/src/order-of-tests.js b/src/order-of-tests.js index af9c2e9..85d28b7 100644 --- a/src/order-of-tests.js +++ b/src/order-of-tests.js @@ -2,10 +2,10 @@ const log = require('debug')('rocha') const la = require('lazy-ass') const is = require('check-more-types') const _ = require('lodash') -const {Maybe} = require('ramda-fantasy') -const {Just, Nothing} = Maybe +const { Maybe } = require('ramda-fantasy') +const { Just, Nothing } = Maybe const R = require('ramda') -const {has, pathSatisfies, lt, tap, allPass} = R +const { has, pathSatisfies, lt, tap, allPass } = R const positive = lt(0) const isObject = R.is(Object) @@ -83,7 +83,7 @@ function setTestOrder (suite, tests, titles) { const orderedTests = [] titles.forEach(title => { - const test = _.find(tests, { title: title }) + const test = _.find(tests, { title }) if (!test) { log('cannot find test under title', title, 'skipping') return