Skip to content

Commit

Permalink
use regular function for Mocha hook to ensure proper context binding
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelAJay committed Nov 8, 2024
1 parent 43dabfe commit 8acc862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/bch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8acc862

Please sign in to comment.