mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 23:29:35 +02:00
fix test output 💚
This commit is contained in:
parent
3c104e2233
commit
a24822d161
2 changed files with 3 additions and 2 deletions
|
@ -1,10 +1,11 @@
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
const DEV = process.env.NODE_ENV === 'dev'
|
||||||
const DEBUG = process.env.NODE_DEBUG === 'hafas-client'
|
const DEBUG = process.env.NODE_DEBUG === 'hafas-client'
|
||||||
|
|
||||||
const {join} = require('path')
|
const {join} = require('path')
|
||||||
const createHash = require('create-hash')
|
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 {stringify} = require('query-string')
|
||||||
const Promise = require('pinkie-promise')
|
const Promise = require('pinkie-promise')
|
||||||
const {fetch} = require('fetch-ponyfill')({Promise})
|
const {fetch} = require('fetch-ponyfill')({Promise})
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
"vbb-stations-autocomplete": "^3.1.0"
|
"vbb-stations-autocomplete": "^3.1.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"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",
|
"prepublishOnly": "npm test | tap-spec",
|
||||||
"install": "node lib/generate-install-id.js >id.json"
|
"install": "node lib/generate-install-id.js >id.json"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue