Skip to content
Permalink
Browse files

standard --fix (patch)

  • Loading branch information...
zrrrzzt committed Jan 28, 2019
1 parent b96cc8c commit f79a7d3888dcc320e4e21761d70b8c8da8e0e017
Showing with 5 additions and 4 deletions.
  1. +1 −1 lib/convertSitemapData.js
  2. +2 −1 package.json
  3. +2 −2 test/objectFromArray-test.js
@@ -1,7 +1,7 @@
'use strict'

const duplexify = require('duplexify')
const saxStream = require('sax').createStream(true, {trim: true})
const saxStream = require('sax').createStream(true, { trim: true })
const readStream = require('stream').PassThrough()
const objectFromArray = require('./objectFromArray')
let list = []
@@ -31,7 +31,8 @@
"test": "standard && tap --reporter=spec test/*.js",
"coverage": "tap test/*.js --coverage",
"coveralls": "tap --cov --coverage-report=lcov test/*.js && cat coverage/lcov.info | coveralls",
"setup": "npm install"
"setup": "npm install",
"standard-fix": "standard --fix"
},
"dependencies": {
"duplexify": "3.6.1",
@@ -15,14 +15,14 @@ tap.throws(
function () {
objectFromArray()
},
{message: 'No input. Input must be an array'},
{ message: 'No input. Input must be an array' },
'Throws if no input'
)

tap.throws(
function () {
objectFromArray('123')
},
{message: 'Input must be an array'},
{ message: 'Input must be an array' },
'Throws if input is not an array'
)

0 comments on commit f79a7d3

Please sign in to comment.
You can’t perform that action at this time.