aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/actions/config_test.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2017-05-05 09:01:46 +0800
committerGitHub <noreply@github.com>2017-05-05 09:01:46 +0800
commitf01891fc019b748151365cf7b04cbc26c94f3d06 (patch)
treec54cdcacb46b91ba5bd22451ec72f8a092495b22 /test/unit/actions/config_test.js
parenta72f50509010a12bf4fb879f2c638a38d2a210d2 (diff)
parent1e4855fc0e2e89ebe6b50ff8d34762f742433110 (diff)
downloadtangerine-wallet-browser-f01891fc019b748151365cf7b04cbc26c94f3d06.tar.gz
tangerine-wallet-browser-f01891fc019b748151365cf7b04cbc26c94f3d06.tar.zst
tangerine-wallet-browser-f01891fc019b748151365cf7b04cbc26c94f3d06.zip
Merge pull request #1376 from MetaMask/1061-Linting-Tests
1061 linting tests
Diffstat (limited to 'test/unit/actions/config_test.js')
-rw-r--r--test/unit/actions/config_test.js23
1 files changed, 10 insertions, 13 deletions
diff --git a/test/unit/actions/config_test.js b/test/unit/actions/config_test.js
index 14198fa8a..648f456fb 100644
--- a/test/unit/actions/config_test.js
+++ b/test/unit/actions/config_test.js
@@ -1,36 +1,34 @@
-var jsdom = require('mocha-jsdom')
+// var jsdom = require('mocha-jsdom')
var assert = require('assert')
var freeze = require('deep-freeze-strict')
var path = require('path')
var actions = require(path.join(__dirname, '..', '..', '..', 'ui', 'app', 'actions.js'))
-var reducers = require(path.join(__dirname, '..', '..', '..', 'ui', 'app', 'reducers.js'))
-
-describe ('config view actions', function() {
+var reducers = require(path.join(__dirname, '..', '..', '..', 'ui', 'app', 'reducers.js'))
+describe('config view actions', function () {
var initialState = {
metamask: {
rpcTarget: 'foo',
- frequentRpcList: []
+ frequentRpcList: [],
},
appState: {
currentView: {
name: 'accounts',
- }
- }
+ },
+ },
}
freeze(initialState)
- describe('SHOW_CONFIG_PAGE', function() {
- it('should set appState.currentView.name to config', function() {
+ describe('SHOW_CONFIG_PAGE', function () {
+ it('should set appState.currentView.name to config', function () {
var result = reducers(initialState, actions.showConfigPage())
assert.equal(result.appState.currentView.name, 'config')
})
})
- describe('SET_RPC_TARGET', function() {
-
- it('sets the state.metamask.rpcTarget property of the state to the action.value', function() {
+ describe('SET_RPC_TARGET', function () {
+ it('sets the state.metamask.rpcTarget property of the state to the action.value', function () {
const action = {
type: actions.SET_RPC_TARGET,
value: 'foo',
@@ -41,5 +39,4 @@ describe ('config view actions', function() {
assert.equal(result.metamask.provider.rpcTarget, 'foo')
})
})
-
})