diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2019-05-09 03:51:33 +0800 |
---|---|---|
committer | Frankie <frankie.diamond@gmail.com> | 2019-05-09 03:51:33 +0800 |
commit | 094e4cf555c698bfef50ca6679cd1e98f4ea9aa1 (patch) | |
tree | cd2b1df66e2a00cc7c24f2c09e28f28f10262a43 /test/lib | |
parent | ef8a07c2ce2b1c5fc4ef18f48592b2e7da178c44 (diff) | |
download | tangerine-wallet-browser-094e4cf555c698bfef50ca6679cd1e98f4ea9aa1.tar tangerine-wallet-browser-094e4cf555c698bfef50ca6679cd1e98f4ea9aa1.tar.gz tangerine-wallet-browser-094e4cf555c698bfef50ca6679cd1e98f4ea9aa1.tar.bz2 tangerine-wallet-browser-094e4cf555c698bfef50ca6679cd1e98f4ea9aa1.tar.lz tangerine-wallet-browser-094e4cf555c698bfef50ca6679cd1e98f4ea9aa1.tar.xz tangerine-wallet-browser-094e4cf555c698bfef50ca6679cd1e98f4ea9aa1.tar.zst tangerine-wallet-browser-094e4cf555c698bfef50ca6679cd1e98f4ea9aa1.zip |
Check for unused function arguments (#6583)
* eslint: Check for unused function arguments
* eslint: Ignore unused '_' in argument list
Also allow any number of '_' e.g., '__' or '___' which is to be used sparingly
* Remove and rename unused arguments
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/mock-encryptor.js | 6 | ||||
-rw-r--r-- | test/lib/util.js | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/lib/mock-encryptor.js b/test/lib/mock-encryptor.js index 852c536c2..23ab2404f 100644 --- a/test/lib/mock-encryptor.js +++ b/test/lib/mock-encryptor.js @@ -4,12 +4,12 @@ let cacheVal module.exports = { - encrypt (password, dataObj) { + encrypt (_, dataObj) { cacheVal = dataObj return Promise.resolve(mockHex) }, - decrypt (password, text) { + decrypt () { return Promise.resolve(cacheVal || {}) }, @@ -21,7 +21,7 @@ module.exports = { return this.decrypt(key, text) }, - keyFromPassword (password) { + keyFromPassword () { return Promise.resolve(mockKey) }, diff --git a/test/lib/util.js b/test/lib/util.js index 858565bb9..4c5d789d1 100644 --- a/test/lib/util.js +++ b/test/lib/util.js @@ -6,7 +6,7 @@ module.exports = { } function timeout (time) { - return new Promise((resolve, reject) => { + return new Promise((resolve) => { setTimeout(resolve, time || 1500) }) } |