From a24822d161761993e1cc90bd680ccae7a49f57a9 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Mon, 3 Sep 2018 15:45:31 +0200 Subject: [PATCH] fix test output :green_heart: --- lib/request.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/request.js b/lib/request.js index 20846e23..13fd3a0e 100644 --- a/lib/request.js +++ b/lib/request.js @@ -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}) diff --git a/package.json b/package.json index ced366b2..ef18c6c0 100644 --- a/package.json +++ b/package.json @@ -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" }