1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00

Fix nickname test

This commit is contained in:
Dan Finlay 2016-11-07 12:19:56 -08:00
parent 7b420c6e15
commit 798e057854

View File

@ -110,6 +110,7 @@ describe('KeyringController', function() {
it ('sets the nickname', function() { it ('sets the nickname', function() {
const account = addresses[0] const account = addresses[0]
var nick = 'Test nickname' var nick = 'Test nickname'
keyringController.identities[ethUtil.addHexPrefix(account)] = {}
const label = keyringController.saveAccountLabel(account, nick) const label = keyringController.saveAccountLabel(account, nick)
assert.equal(label, nick) assert.equal(label, nick)