From 8acc86270d61289d6d1267f40471e4641bf4fac2 Mon Sep 17 00:00:00 2001 From: Michael Jay Date: Fri, 8 Nov 2024 09:56:50 -0500 Subject: [PATCH] use regular function for Mocha hook to ensure proper context binding --- tests/bch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/bch.js b/tests/bch.js index 840fa10..81c3886 100644 --- a/tests/bch.js +++ b/tests/bch.js @@ -28,7 +28,7 @@ describe('BCH Tests', function() { const rpcs = new CryptoRpc(config, currencyConfig); const bitcoin = rpcs.get(currency); - before(async () => { + before(async function() { try { await bitcoin.asyncCall('encryptWallet', ['password']); } catch (e) {