explicitly import mocha variables
This commit is contained in:
parent
3bb3b9f397
commit
16195cc6ce
24 changed files with 26 additions and 47 deletions
|
@ -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')
|
||||||
|
|
|
@ -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('../')
|
||||||
|
|
|
@ -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')
|
||||||
|
|
||||||
|
|
|
@ -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')
|
||||||
|
|
||||||
|
|
|
@ -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')
|
||||||
|
|
|
@ -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')
|
||||||
|
|
||||||
|
|
|
@ -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')
|
||||||
|
|
|
@ -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')
|
||||||
|
|
|
@ -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')
|
||||||
|
|
|
@ -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('../../')
|
||||||
|
|
||||||
|
|
|
@ -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')
|
||||||
|
|
|
@ -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('../../')
|
||||||
|
|
|
@ -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')
|
||||||
|
|
|
@ -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 = [
|
||||||
|
|
|
@ -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')
|
||||||
|
|
|
@ -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')
|
||||||
|
|
|
@ -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')
|
||||||
|
|
||||||
|
|
|
@ -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')
|
||||||
|
|
|
@ -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')
|
||||||
|
|
|
@ -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')
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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')
|
||||||
|
|
|
@ -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')
|
||||||
|
|
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue