diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/keyring-controller-test.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/unit/keyring-controller-test.js b/test/unit/keyring-controller-test.js index 6656583e8..eed6af2c3 100644 --- a/test/unit/keyring-controller-test.js +++ b/test/unit/keyring-controller-test.js @@ -105,6 +105,17 @@ describe('KeyringController', function() { }) }) + describe('#saveAccountLabel', function() { + it ('sets the nickname', function() { + const account = addresses[0] + var nick = 'Test nickname' + const label = keyringController.saveAccountLabel(account, nick) + assert.equal(label, nick) + + const persisted = keyringController.configManager.nicknameForWallet(account) + assert.equal(persisted, nick) + }) + }) }) |