From fe1b1df0d12f7fd60a64452d4754e6d3ef7d8a4e Mon Sep 17 00:00:00 2001 From: Vladimir Grichina Date: Sat, 27 Jul 2019 01:18:49 -0700 Subject: [PATCH] Make `nearConfig` available for tests --- test_environment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_environment.js b/test_environment.js index 1cdce490..29b6162d 100644 --- a/test_environment.js +++ b/test_environment.js @@ -13,7 +13,7 @@ class LocalTestEnvironment extends NodeEnvironment { this.global.nearlib = require('nearlib'); this.global.window = {}; let config = require('./get-config')(); - this.global.testSettings = config; + this.global.testSettings = this.global.nearConfig = config; config = Object.assign(config, { contractName: "test" + Date.now(), accountId: "test" + Date.now()