fix test output 💚

This commit is contained in:
Jannis R 2018-09-03 15:45:31 +02:00
parent 3c104e2233
commit a24822d161
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
2 changed files with 3 additions and 2 deletions

View file

@ -1,10 +1,11 @@
'use strict'
const DEV = process.env.NODE_ENV === 'dev'
const DEBUG = process.env.NODE_DEBUG === 'hafas-client'
const {join} = require('path')
const createHash = require('create-hash')
const captureStackTrace = DEBUG ? require('capture-stack-trace') : () => {}
const captureStackTrace = DEV ? require('capture-stack-trace') : () => {}
const {stringify} = require('query-string')
const Promise = require('pinkie-promise')
const {fetch} = require('fetch-ponyfill')({Promise})

View file

@ -61,7 +61,7 @@
"vbb-stations-autocomplete": "^3.1.0"
},
"scripts": {
"test": "env NODE_ENV=dev NODE_DEBUG=hafas-client node test/index.js",
"test": "env NODE_ENV=dev node test/index.js",
"prepublishOnly": "npm test | tap-spec",
"install": "node lib/generate-install-id.js >id.json"
}