From 5c9e5086411c1497929703836f19a03fd0ae09f9 Mon Sep 17 00:00:00 2001 From: Edin Jusupovic Date: Thu, 23 Aug 2018 12:51:37 +1000 Subject: [PATCH] Updated Mocha to latest version, resolved critical package bugs from old Mocha version. Discovered new bugs in tests: test/scaffold/create.integration.js (fixed now) --- package.json | 4 ++-- test/scaffold/create.integration.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 90283aeaa..c4443c186 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "litecoind" ], "peerDependencies": { - "litecore-lib": "^0.13.22" + "litecore-lib": "^0.13.22" }, "dependencies": { "async": "^1.3.0", @@ -83,7 +83,7 @@ "istanbul": "^0.4.3", "jshint": "^2.9.2", "jshint-stylish": "^2.1.0", - "mocha": "^2.4.5", + "mocha": "^5.2.0", "proxyquire": "^1.3.1", "rimraf": "^2.4.2", "sinon": "^1.15.4" diff --git a/test/scaffold/create.integration.js b/test/scaffold/create.integration.js index 5d3a22ced..6b11328ff 100644 --- a/test/scaffold/create.integration.js +++ b/test/scaffold/create.integration.js @@ -71,8 +71,8 @@ describe('#create', function() { should.equal(fs.existsSync(packagePath), true); var config = JSON.parse(fs.readFileSync(configPath)); - config.services.should.deep.equal(['bitcoind', 'db', 'address', 'web']); - config.datadir.should.equal('./data'); + config.services.should.deep.equal(['bitcoind', 'web']); + config.servicesConfig.bitcoind.spawn.datadir.should.equal('./data'); config.network.should.equal('livenet'); var pack = JSON.parse(fs.readFileSync(packagePath));