aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/actions/set_account_label_test.js
diff options
context:
space:
mode:
authorHsuan Lee <hsuan@cobinhood.com>2018-11-09 14:13:12 +0800
committerHsuan Lee <hsuan@cobinhood.com>2018-12-10 18:46:49 +0800
commitb271dfc4e5951af6b99fe9a0d2000bb6db45e214 (patch)
treee8c1684e034c4b53346dddccd79178bdbe660d62 /test/unit/actions/set_account_label_test.js
parent667007ee63945a00fa0c46c3d037a30b1e434bce (diff)
downloaddexon-wallet-b271dfc4e5951af6b99fe9a0d2000bb6db45e214.tar.gz
dexon-wallet-b271dfc4e5951af6b99fe9a0d2000bb6db45e214.tar.zst
dexon-wallet-b271dfc4e5951af6b99fe9a0d2000bb6db45e214.zip
Fix UI bugs
Diffstat (limited to 'test/unit/actions/set_account_label_test.js')
-rw-r--r--test/unit/actions/set_account_label_test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/actions/set_account_label_test.js b/test/unit/actions/set_account_label_test.js
index 53ea1d13..2b30643e 100644
--- a/test/unit/actions/set_account_label_test.js
+++ b/test/unit/actions/set_account_label_test.js
@@ -6,9 +6,9 @@ const actions = require(path.join(__dirname, '..', '..', '..', 'ui', 'app', 'act
const reducers = require(path.join(__dirname, '..', '..', '..', 'ui', 'app', 'reducers.js'))
describe('SET_ACCOUNT_LABEL', function () {
- it('updates the state.metamask.identities[:i].name property of the state to the action.value.label', function () {
+ it('updates the state.dekusan.identities[:i].name property of the state to the action.value.label', function () {
const initialState = {
- metamask: {
+ dekusan: {
identities: {
foo: {
name: 'bar',
@@ -28,7 +28,7 @@ describe('SET_ACCOUNT_LABEL', function () {
freeze(action)
const resultingState = reducers(initialState, action)
- assert.equal(resultingState.metamask.identities.foo.name, action.value.label)
+ assert.equal(resultingstate.dekusan.identities.foo.name, action.value.label)
})
})