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 baddress = require('../src/address')
|
||||
const bscript = require('../src/script')
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/* global describe, it */
|
||||
|
||||
const { describe, it } = require('mocha')
|
||||
const assert = require('assert')
|
||||
const base58 = require('bs58')
|
||||
const bitcoin = require('../')
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/* global describe, it, beforeEach */
|
||||
|
||||
const { describe, it, beforeEach } = require('mocha')
|
||||
const assert = require('assert')
|
||||
const Block = require('../src/block')
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/* global describe, it */
|
||||
|
||||
const { describe, it } = require('mocha')
|
||||
const assert = require('assert')
|
||||
const bufferutils = require('../src/bufferutils')
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/* global describe, it */
|
||||
|
||||
const { describe, it } = require('mocha')
|
||||
const assert = require('assert')
|
||||
const bcrypto = require('../src/crypto')
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/* global describe, it */
|
||||
|
||||
const { describe, it } = require('mocha')
|
||||
const assert = require('assert')
|
||||
const bitcoin = require('../../')
|
||||
const dhttp = require('dhttp/200')
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/* global describe, it */
|
||||
|
||||
const { describe, it } = require('mocha')
|
||||
const assert = require('assert')
|
||||
const bip32 = require('bip32')
|
||||
const bip39 = require('bip39')
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* global describe, it */
|
||||
'use strict'
|
||||
|
||||
const { describe, it } = require('mocha')
|
||||
const assert = require('assert')
|
||||
const bitcoin = require('../../')
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/* global describe, it */
|
||||
|
||||
const { describe, it } = require('mocha')
|
||||
const assert = require('assert')
|
||||
const BN = require('bn.js')
|
||||
const bitcoin = require('../../')
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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 = [
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/* global describe, it */
|
||||
|
||||
const { describe, it } = require('mocha')
|
||||
const assert = require('assert')
|
||||
const bitcoin = require('../../')
|
||||
const ecc = require('tiny-secp256k1')
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/* global describe, it */
|
||||
|
||||
const { describe, it } = require('mocha')
|
||||
const assert = require('assert')
|
||||
const bitcoin = require('../../')
|
||||
const regtestUtils = require('./_regtest')
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/* global describe, it */
|
||||
|
||||
const { describe, it } = require('mocha')
|
||||
const assert = require('assert')
|
||||
const u = require('./payments.utils')
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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…
Reference in a new issue