From 7faf4ddd0286feca93713b52a01c1c366e17c6a4 Mon Sep 17 00:00:00 2001 From: Arsen Melikyan Date: Sat, 11 Jun 2016 10:12:56 +0400 Subject: [PATCH] Fix incorrect file existence check and fix npm test --- core/util.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/util.js b/core/util.js index 600da6dc8..8aa094a8e 100644 --- a/core/util.js +++ b/core/util.js @@ -17,7 +17,7 @@ var util = { getConfig: function() { if(_config) return _config; - var configFile = path.resolve(program.config || util.dirs().gekko + 'config'); + var configFile = path.resolve(program.config || util.dirs().gekko + 'config.js'); if(!fs.existsSync(configFile)) util.die('Cannot find a config file.'); diff --git a/package.json b/package.json index 3a7ed97d5..e479ccd99 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "bitcoin" ], "scripts": { - "test": "./node_modules/.bin/mocha -u tdd --reporter spec" + "test": "./node_modules/.bin/mocha test/*.js -u tdd --reporter spec" }, "author": "Mike van Rossum ", "dependencies": {