Merge pull request #1229 from bitcoinjs/brows

explicitly import mocha variables
This commit is contained in:
Daniel Cousens 2018-09-26 13:25:07 +10:00 committed by GitHub
commit a6f2cc2924
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 baddress = require('../src/address')
const bscript = require('../src/script')

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -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

View file

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

View file

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

View file

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