explicitly import mocha variables

This commit is contained in:
Daniel Cousens 2018-07-23 17:45:01 +10:00
parent 3bb3b9f397
commit 16195cc6ce
24 changed files with 26 additions and 47 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,6 +1,6 @@
/* global describe, it, beforeEach */
/* eslint-disable no-new */ /* eslint-disable no-new */
const { describe, it, beforeEach } = require('mocha')
const assert = require('assert') const assert = require('assert')
const proxyquire = require('proxyquire') const proxyquire = require('proxyquire')
const hoodwink = require('hoodwink') const hoodwink = require('hoodwink')

View file

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

View file

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

View file

@ -1,6 +1,6 @@
/* global describe, it */
'use strict' 'use strict'
const { describe, it } = require('mocha')
const assert = require('assert') const assert = require('assert')
const bitcoin = require('../../') const bitcoin = require('../../')

View file

@ -1,5 +1,4 @@
/* global describe, it, before */ const { describe, it, before } = require('mocha')
const assert = require('assert') const assert = require('assert')
const bitcoin = require('../../') const bitcoin = require('../../')
const regtestUtils = require('./_regtest') const regtestUtils = require('./_regtest')

View file

@ -1,5 +1,4 @@
/* global describe, it */ const { describe, it } = require('mocha')
const assert = require('assert') const assert = require('assert')
const BN = require('bn.js') const BN = require('bn.js')
const bitcoin = require('../../') const bitcoin = require('../../')

View file

@ -1,5 +1,4 @@
/* global describe, it, before */ const { describe, it, before } = require('mocha')
const assert = require('assert') const assert = require('assert')
const bitcoin = require('../../') const bitcoin = require('../../')
const regtestUtils = require('./_regtest') const regtestUtils = require('./_regtest')

View file

@ -1,7 +1,6 @@
/* global describe, it */
const bitcoin = require('../../') const bitcoin = require('../../')
const { describe, it } = require('mocha')
const regtestUtils = require('./_regtest') const regtestUtils = require('./_regtest')
const NETWORK = regtestUtils.network const NETWORK = regtestUtils.network
const keyPairs = [ const keyPairs = [

View file

@ -1,5 +1,4 @@
/* global describe, it */ const { describe, it } = require('mocha')
const assert = require('assert') const assert = require('assert')
const bitcoin = require('../../') const bitcoin = require('../../')
const ecc = require('tiny-secp256k1') const ecc = require('tiny-secp256k1')

View file

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

View file

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

View file

@ -1,6 +1,6 @@
let t = require('assert') const t = require('assert')
let bscript = require('../src/script') const bscript = require('../src/script')
let bnetworks = require('../src/networks') const bnetworks = require('../src/networks')
function tryHex (x) { function tryHex (x) {
if (Buffer.isBuffer(x)) return x.toString('hex') if (Buffer.isBuffer(x)) return x.toString('hex')

View file

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

View file

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

View file

@ -1,5 +1,4 @@
/* global describe, it */ const { describe, it } = require('mocha')
const assert = require('assert') const assert = require('assert')
const bscriptSig = require('../src/script').signature const bscriptSig = require('../src/script').signature
const Buffer = require('safe-buffer').Buffer const Buffer = require('safe-buffer').Buffer

View file

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

View file

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

View file

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