aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-11-23 09:40:29 +0800
committerDan Finlay <dan@danfinlay.com>2016-11-23 09:41:54 +0800
commit05c8658ff343af61b1a40a5624ecba77adb2ef00 (patch)
tree5c2f426a63e22f4abc378a59bb86faba7e002877 /test
parent1e46d858e995c6c50f155f1bcdaf64b922402599 (diff)
downloadtangerine-wallet-browser-05c8658ff343af61b1a40a5624ecba77adb2ef00.tar
tangerine-wallet-browser-05c8658ff343af61b1a40a5624ecba77adb2ef00.tar.gz
tangerine-wallet-browser-05c8658ff343af61b1a40a5624ecba77adb2ef00.tar.bz2
tangerine-wallet-browser-05c8658ff343af61b1a40a5624ecba77adb2ef00.tar.lz
tangerine-wallet-browser-05c8658ff343af61b1a40a5624ecba77adb2ef00.tar.xz
tangerine-wallet-browser-05c8658ff343af61b1a40a5624ecba77adb2ef00.tar.zst
tangerine-wallet-browser-05c8658ff343af61b1a40a5624ecba77adb2ef00.zip
Fix new encryptor migration logic
Diffstat (limited to 'test')
-rw-r--r--test/integration/lib/keyring-controller-test.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/integration/lib/keyring-controller-test.js b/test/integration/lib/keyring-controller-test.js
index bea485270..678744834 100644
--- a/test/integration/lib/keyring-controller-test.js
+++ b/test/integration/lib/keyring-controller-test.js
@@ -44,3 +44,14 @@ QUnit.test('keyringController:submitPassword', function (assert) {
done()
})
})
+
+QUnit.test('keyringController:setLocked', function (assert) {
+ var done = assert.async()
+ var self = this
+
+ this.keyringController.setLocked(function(err) {
+ assert.notOk(self.keyringController.password, 'password should be deallocated')
+ assert.deepEqual(self.keyringController.keyrings, [], 'keyrings should be deallocated')
+ done()
+ })
+})