Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use object shorthand for properties #140

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/rocha.js
Expand Up @@ -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 })
2 changes: 1 addition & 1 deletion 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')

Expand Down
8 changes: 4 additions & 4 deletions src/order-of-tests.js
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down