aboutsummaryrefslogtreecommitdiffstats
path: root/test/integration/lib/keyring-controller-test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/lib/keyring-controller-test.js')
-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()
+ })
+})