aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/reducers
diff options
context:
space:
mode:
authorThomas Huang <thomas.b.huang@gmail.com>2017-05-05 05:35:10 +0800
committerThomas Huang <thomas.b.huang@gmail.com>2017-05-05 05:35:10 +0800
commit0b13429daf00ddd5bdf2705c7a95d7a9d5792f54 (patch)
treef249d8deb5fa48db54d70757de944b2c8ff76a2e /test/unit/reducers
parent8f5334e4aca8b95963f57b0fbf862256b692dbd9 (diff)
downloadtangerine-wallet-browser-0b13429daf00ddd5bdf2705c7a95d7a9d5792f54.tar
tangerine-wallet-browser-0b13429daf00ddd5bdf2705c7a95d7a9d5792f54.tar.gz
tangerine-wallet-browser-0b13429daf00ddd5bdf2705c7a95d7a9d5792f54.tar.bz2
tangerine-wallet-browser-0b13429daf00ddd5bdf2705c7a95d7a9d5792f54.tar.lz
tangerine-wallet-browser-0b13429daf00ddd5bdf2705c7a95d7a9d5792f54.tar.xz
tangerine-wallet-browser-0b13429daf00ddd5bdf2705c7a95d7a9d5792f54.tar.zst
tangerine-wallet-browser-0b13429daf00ddd5bdf2705c7a95d7a9d5792f54.zip
Lint tests
Diffstat (limited to 'test/unit/reducers')
-rw-r--r--test/unit/reducers/unlock_vault_test.js27
1 files changed, 13 insertions, 14 deletions
diff --git a/test/unit/reducers/unlock_vault_test.js b/test/unit/reducers/unlock_vault_test.js
index b7540af08..2b7d70b2c 100644
--- a/test/unit/reducers/unlock_vault_test.js
+++ b/test/unit/reducers/unlock_vault_test.js
@@ -1,32 +1,31 @@
-var jsdom = require('mocha-jsdom')
+// var jsdom = require('mocha-jsdom')
var assert = require('assert')
-var freeze = require('deep-freeze-strict')
+// var freeze = require('deep-freeze-strict')
var path = require('path')
var sinon = require('sinon')
var actions = require(path.join(__dirname, '..', '..', '..', 'ui', 'app', 'actions.js'))
-var reducers = require(path.join(__dirname, '..', '..', '..', 'ui', 'app', 'reducers.js'))
+var reducers = require(path.join(__dirname, '..', '..', '..', 'ui', 'app', 'reducers.js'))
-describe('#unlockMetamask(selectedAccount)', function() {
-
- beforeEach(function() {
+describe('#unlockMetamask(selectedAccount)', function () {
+ beforeEach(function () {
// sinon allows stubbing methods that are easily verified
this.sinon = sinon.sandbox.create()
})
- afterEach(function() {
+ afterEach(function () {
// sinon requires cleanup otherwise it will overwrite context
this.sinon.restore()
})
- describe('after an error', function() {
- it('clears warning', function() {
+ describe('after an error', function () {
+ it('clears warning', function () {
const warning = 'this is the wrong warning'
const account = 'foo_account'
const initialState = {
appState: {
warning: warning,
- }
+ },
}
const resultState = reducers(initialState, actions.unlockMetamask(account))
@@ -34,14 +33,14 @@ describe('#unlockMetamask(selectedAccount)', function() {
})
})
- describe('going home after an error', function() {
- it('clears warning', function() {
+ describe('going home after an error', function () {
+ it('clears warning', function () {
const warning = 'this is the wrong warning'
- const account = 'foo_account'
+ // const account = 'foo_account'
const initialState = {
appState: {
warning: warning,
- }
+ },
}
const resultState = reducers(initialState, actions.goHome())