aboutsummaryrefslogtreecommitdiffstats
path: root/test/lib/mock-simple-keychain.js
diff options
context:
space:
mode:
authorThomas Huang <thomas.b.huang@gmail.com>2017-05-05 05:35:10 +0800
committerThomas Huang <thomas.b.huang@gmail.com>2017-05-05 05:35:10 +0800
commit0b13429daf00ddd5bdf2705c7a95d7a9d5792f54 (patch)
treef249d8deb5fa48db54d70757de944b2c8ff76a2e /test/lib/mock-simple-keychain.js
parent8f5334e4aca8b95963f57b0fbf862256b692dbd9 (diff)
downloadtangerine-wallet-browser-0b13429daf00ddd5bdf2705c7a95d7a9d5792f54.tar.gz
tangerine-wallet-browser-0b13429daf00ddd5bdf2705c7a95d7a9d5792f54.tar.zst
tangerine-wallet-browser-0b13429daf00ddd5bdf2705c7a95d7a9d5792f54.zip
Lint tests
Diffstat (limited to 'test/lib/mock-simple-keychain.js')
-rw-r--r--test/lib/mock-simple-keychain.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/lib/mock-simple-keychain.js b/test/lib/mock-simple-keychain.js
index 615b3e537..d3addc3e8 100644
--- a/test/lib/mock-simple-keychain.js
+++ b/test/lib/mock-simple-keychain.js
@@ -6,32 +6,32 @@ const type = 'Simple Key Pair'
module.exports = class MockSimpleKeychain {
- static type() { return type }
+ static type () { return type }
- constructor(opts) {
+ constructor (opts) {
this.type = type
this.opts = opts || {}
this.wallets = []
}
- serialize() {
+ serialize () {
return [ fakeWallet.privKey ]
}
- deserialize(data) {
+ deserialize (data) {
if (!Array.isArray(data)) {
throw new Error('Simple keychain deserialize requires a privKey array.')
}
this.wallets = [ fakeWallet ]
}
- addAccounts(n = 1) {
- for(var i = 0; i < n; i++) {
+ addAccounts (n = 1) {
+ for (var i = 0; i < n; i++) {
this.wallets.push(fakeWallet)
}
}
- getAccounts() {
+ getAccounts () {
return this.wallets.map(w => w.address)
}