Browse Source

explicitly import mocha variables

v4
Daniel Cousens 7 years ago
parent
commit
16195cc6ce
  1. 3
      test/address.js
  2. 3
      test/bitcoin.core.js
  3. 3
      test/block.js
  4. 3
      test/bufferutils.js
  5. 3
      test/classify.js
  6. 3
      test/crypto.js
  7. 2
      test/ecpair.js
  8. 3
      test/integration/addresses.js
  9. 3
      test/integration/bip32.js
  10. 2
      test/integration/blocks.js
  11. 3
      test/integration/cltv.js
  12. 3
      test/integration/crypto.js
  13. 3
      test/integration/csv.js
  14. 3
      test/integration/payments.js
  15. 3
      test/integration/stealth.js
  16. 3
      test/integration/transactions.js
  17. 3
      test/payments.js
  18. 6
      test/payments.utils.js
  19. 3
      test/script.js
  20. 3
      test/script_number.js
  21. 3
      test/script_signature.js
  22. 3
      test/transaction.js
  23. 3
      test/transaction_builder.js
  24. 3
      test/types.js

3
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')

3
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('../')

3
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')

3
test/bufferutils.js

@ -1,5 +1,4 @@
/* global describe, it */
const { describe, it } = require('mocha')
const assert = require('assert')
const bufferutils = require('../src/bufferutils')

3
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')

3
test/crypto.js

@ -1,5 +1,4 @@
/* global describe, it */
const { describe, it } = require('mocha')
const assert = require('assert')
const bcrypto = require('../src/crypto')

2
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')

3
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')

3
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')

2
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('../../')

3
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')

3
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('../../')

3
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')

3
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 = [

3
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')

3
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')

3
test/payments.js

@ -1,5 +1,4 @@
/* global describe, it */
const { describe, it } = require('mocha')
const assert = require('assert')
const u = require('./payments.utils')

6
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')

3
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')

3
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')

3
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

3
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')

3
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')

3
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')

Loading…
Cancel
Save