aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/actions/tx_test.js
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2019-05-09 03:51:33 +0800
committerFrankie <frankie.diamond@gmail.com>2019-05-09 03:51:33 +0800
commit094e4cf555c698bfef50ca6679cd1e98f4ea9aa1 (patch)
treecd2b1df66e2a00cc7c24f2c09e28f28f10262a43 /test/unit/actions/tx_test.js
parentef8a07c2ce2b1c5fc4ef18f48592b2e7da178c44 (diff)
downloadtangerine-wallet-browser-094e4cf555c698bfef50ca6679cd1e98f4ea9aa1.tar.gz
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/unit/actions/tx_test.js')
-rw-r--r--test/unit/actions/tx_test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/actions/tx_test.js b/test/unit/actions/tx_test.js
index 8c64d844f..f2f8f1d1c 100644
--- a/test/unit/actions/tx_test.js
+++ b/test/unit/actions/tx_test.js
@@ -33,8 +33,8 @@ describe('tx confirmation screen', function () {
describe('cancelTx', function () {
before(function (done) {
actions._setBackgroundConnection({
- approveTransaction (txId, cb) { cb('An error!') },
- cancelTransaction (txId, cb) { cb() },
+ approveTransaction (_, cb) { cb('An error!') },
+ cancelTransaction (_, cb) { cb() },
clearSeedWordCache (cb) { cb() },
getState (cb) { cb() },
})