From 2392e77cd8d0fff49a4c4f0c79539d990dd5dbd2 Mon Sep 17 00:00:00 2001 From: Thomas Huang Date: Mon, 30 Jul 2018 20:18:01 -0700 Subject: Set metamask controller network provider to localhost --- test/unit/localhostState.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/unit/localhostState.js (limited to 'test/unit/localhostState.js') diff --git a/test/unit/localhostState.js b/test/unit/localhostState.js new file mode 100644 index 000000000..ea0fa9194 --- /dev/null +++ b/test/unit/localhostState.js @@ -0,0 +1,21 @@ + +/** + * @typedef {Object} FirstTimeState + * @property {Object} config Initial configuration parameters + * @property {Object} NetworkController Network controller state + */ + +/** + * @type {FirstTimeState} + */ +const initialState = { + config: {}, + NetworkController: { + provider: { + type: 'rpc', + rpcTarget: 'http://localhost:8545' + } + }, +} + +module.exports = initialState -- cgit v1.2.3 From 5b3927fe5b5243a89e5fd31ad069da9ea5c987e9 Mon Sep 17 00:00:00 2001 From: Thomas Huang Date: Mon, 30 Jul 2018 20:30:35 -0700 Subject: Lint --- test/unit/localhostState.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/unit/localhostState.js') diff --git a/test/unit/localhostState.js b/test/unit/localhostState.js index ea0fa9194..f9fa157d7 100644 --- a/test/unit/localhostState.js +++ b/test/unit/localhostState.js @@ -13,8 +13,8 @@ const initialState = { NetworkController: { provider: { type: 'rpc', - rpcTarget: 'http://localhost:8545' - } + rpcTarget: 'http://localhost:8545', + }, }, } -- cgit v1.2.3