diff --git a/test/address.js b/test/address.js index 99955e7..a0f4df0 100644 --- a/test/address.js +++ b/test/address.js @@ -1,5 +1,4 @@ -/* global describe, it */ - +const { describe, it } = require('mocha') const assert = require('assert') const baddress = require('../src/address') const bscript = require('../src/script') diff --git a/test/bitcoin.core.js b/test/bitcoin.core.js index f0aecf7..560bf20 100644 --- a/test/bitcoin.core.js +++ b/test/bitcoin.core.js @@ -1,5 +1,4 @@ -/* global describe, it */ - +const { describe, it } = require('mocha') const assert = require('assert') const base58 = require('bs58') const bitcoin = require('../') diff --git a/test/block.js b/test/block.js index 1da9de3..d9ff405 100644 --- a/test/block.js +++ b/test/block.js @@ -1,5 +1,4 @@ -/* global describe, it, beforeEach */ - +const { describe, it, beforeEach } = require('mocha') const assert = require('assert') const Block = require('../src/block') diff --git a/test/bufferutils.js b/test/bufferutils.js index aa044af..5f2c39e 100644 --- a/test/bufferutils.js +++ b/test/bufferutils.js @@ -1,5 +1,4 @@ -/* global describe, it */ - +const { describe, it } = require('mocha') const assert = require('assert') const bufferutils = require('../src/bufferutils') diff --git a/test/classify.js b/test/classify.js index f56647e..3efcc74 100644 --- a/test/classify.js +++ b/test/classify.js @@ -1,5 +1,4 @@ -/* global describe, it */ - +const { describe, it } = require('mocha') const assert = require('assert') const bscript = require('../src/script') const classify = require('../src/classify') diff --git a/test/crypto.js b/test/crypto.js index 18f2a37..3f7802a 100644 --- a/test/crypto.js +++ b/test/crypto.js @@ -1,5 +1,4 @@ -/* global describe, it */ - +const { describe, it } = require('mocha') const assert = require('assert') const bcrypto = require('../src/crypto') diff --git a/test/ecpair.js b/test/ecpair.js index fc215f1..3b5857f 100644 --- a/test/ecpair.js +++ b/test/ecpair.js @@ -1,6 +1,6 @@ -/* global describe, it, beforeEach */ /* eslint-disable no-new */ +const { describe, it, beforeEach } = require('mocha') const assert = require('assert') const proxyquire = require('proxyquire') const hoodwink = require('hoodwink') diff --git a/test/integration/addresses.js b/test/integration/addresses.js index 412e792..4bd71c8 100644 --- a/test/integration/addresses.js +++ b/test/integration/addresses.js @@ -1,5 +1,4 @@ -/* global describe, it */ - +const { describe, it } = require('mocha') const assert = require('assert') const bitcoin = require('../../') const dhttp = require('dhttp/200') diff --git a/test/integration/bip32.js b/test/integration/bip32.js index 3d2f12c..27a2da4 100644 --- a/test/integration/bip32.js +++ b/test/integration/bip32.js @@ -1,5 +1,4 @@ -/* global describe, it */ - +const { describe, it } = require('mocha') const assert = require('assert') const bip32 = require('bip32') const bip39 = require('bip39') diff --git a/test/integration/blocks.js b/test/integration/blocks.js index a0bdea3..915fd65 100644 --- a/test/integration/blocks.js +++ b/test/integration/blocks.js @@ -1,6 +1,6 @@ -/* global describe, it */ 'use strict' +const { describe, it } = require('mocha') const assert = require('assert') const bitcoin = require('../../') diff --git a/test/integration/cltv.js b/test/integration/cltv.js index 626c7e9..edd4b61 100644 --- a/test/integration/cltv.js +++ b/test/integration/cltv.js @@ -1,5 +1,4 @@ -/* global describe, it, before */ - +const { describe, it, before } = require('mocha') const assert = require('assert') const bitcoin = require('../../') const regtestUtils = require('./_regtest') diff --git a/test/integration/crypto.js b/test/integration/crypto.js index 864f4e7..bc4a9bc 100644 --- a/test/integration/crypto.js +++ b/test/integration/crypto.js @@ -1,5 +1,4 @@ -/* global describe, it */ - +const { describe, it } = require('mocha') const assert = require('assert') const BN = require('bn.js') const bitcoin = require('../../') diff --git a/test/integration/csv.js b/test/integration/csv.js index e0ad02f..f0db2e4 100644 --- a/test/integration/csv.js +++ b/test/integration/csv.js @@ -1,5 +1,4 @@ -/* global describe, it, before */ - +const { describe, it, before } = require('mocha') const assert = require('assert') const bitcoin = require('../../') const regtestUtils = require('./_regtest') diff --git a/test/integration/payments.js b/test/integration/payments.js index d319f60..44acea2 100644 --- a/test/integration/payments.js +++ b/test/integration/payments.js @@ -1,7 +1,6 @@ -/* global describe, it */ - const bitcoin = require('../../') +const { describe, it } = require('mocha') const regtestUtils = require('./_regtest') const NETWORK = regtestUtils.network const keyPairs = [ diff --git a/test/integration/stealth.js b/test/integration/stealth.js index 813f48b..dd99d63 100644 --- a/test/integration/stealth.js +++ b/test/integration/stealth.js @@ -1,5 +1,4 @@ -/* global describe, it */ - +const { describe, it } = require('mocha') const assert = require('assert') const bitcoin = require('../../') const ecc = require('tiny-secp256k1') diff --git a/test/integration/transactions.js b/test/integration/transactions.js index ef95d53..4d344a5 100644 --- a/test/integration/transactions.js +++ b/test/integration/transactions.js @@ -1,5 +1,4 @@ -/* global describe, it */ - +const { describe, it } = require('mocha') const assert = require('assert') const bitcoin = require('../../') const regtestUtils = require('./_regtest') diff --git a/test/payments.js b/test/payments.js index 3af6699..3c07bf3 100644 --- a/test/payments.js +++ b/test/payments.js @@ -1,5 +1,4 @@ -/* global describe, it */ - +const { describe, it } = require('mocha') const assert = require('assert') const u = require('./payments.utils') diff --git a/test/payments.utils.js b/test/payments.utils.js index 6a7af32..219d086 100644 --- a/test/payments.utils.js +++ b/test/payments.utils.js @@ -1,6 +1,6 @@ -let t = require('assert') -let bscript = require('../src/script') -let bnetworks = require('../src/networks') +const t = require('assert') +const bscript = require('../src/script') +const bnetworks = require('../src/networks') function tryHex (x) { if (Buffer.isBuffer(x)) return x.toString('hex') diff --git a/test/script.js b/test/script.js index 269e18a..c2a60ad 100644 --- a/test/script.js +++ b/test/script.js @@ -1,5 +1,4 @@ -/* global describe, it */ - +const { describe, it } = require('mocha') const assert = require('assert') const bscript = require('../src/script') const minimalData = require('minimaldata') diff --git a/test/script_number.js b/test/script_number.js index d217ff1..bc8f395 100644 --- a/test/script_number.js +++ b/test/script_number.js @@ -1,5 +1,4 @@ -/* global describe, it */ - +const { describe, it } = require('mocha') const assert = require('assert') const scriptNumber = require('../src/script_number') const fixtures = require('./fixtures/script_number.json') diff --git a/test/script_signature.js b/test/script_signature.js index 9908ebc..cee69bd 100644 --- a/test/script_signature.js +++ b/test/script_signature.js @@ -1,5 +1,4 @@ -/* global describe, it */ - +const { describe, it } = require('mocha') const assert = require('assert') const bscriptSig = require('../src/script').signature const Buffer = require('safe-buffer').Buffer diff --git a/test/transaction.js b/test/transaction.js index e249631..f8b7de9 100644 --- a/test/transaction.js +++ b/test/transaction.js @@ -1,5 +1,4 @@ -/* global describe, it, beforeEach */ - +const { describe, it, beforeEach } = require('mocha') const assert = require('assert') const bscript = require('../src/script') const fixtures = require('./fixtures/transaction') diff --git a/test/transaction_builder.js b/test/transaction_builder.js index 34ec9da..88ab286 100644 --- a/test/transaction_builder.js +++ b/test/transaction_builder.js @@ -1,5 +1,4 @@ -/* global describe, it, beforeEach */ - +const { describe, it, beforeEach } = require('mocha') const assert = require('assert') const baddress = require('../src/address') const bcrypto = require('../src/crypto') diff --git a/test/types.js b/test/types.js index adc6f35..d245d53 100644 --- a/test/types.js +++ b/test/types.js @@ -1,5 +1,4 @@ -/* global describe, it */ - +const { describe, it } = require('mocha') const assert = require('assert') const types = require('../src/types') const typeforce = require('typeforce')