mirror of
https://github.com/Permissionless-Software-Foundation/bch-js.git
synced 2026-09-21 16:51:59 -07:00
26 lines
635 B
JavaScript
26 lines
635 B
JavaScript
const chai = require("chai")
|
|||
|
|
const assert = chai.assert
|
||
|
|
const BCHJS = require("../../src/bch-js")
|
||
|
|
|
||
|
|
// Used for debugging and iterrogating JS objects.
|
||
|
|
const util = require("util")
|
||
|
|
util.inspect.defaultOptions = { depth: 1 }
|
||
|
|
|
||
|
|
describe(`#BitboxShim`, () => {
|
||
|
|
it("should create the shim library", () => {
|
||
|
|
const BitboxShim = BCHJS.BitboxShim()
|
||
|
|
const bitbox = new BitboxShim()
|
||
|
|
|
||
|
|
//console.log(`bitbox.Address: ${util.inspect(bitbox.Address)}`)
|
||
|
|
|
||
|
|
assert.hasAnyKeys(bitbox.Address, [
|
||
|
|
// "details",
|
||
|
|
// "utxo",
|
||
|
|
// "unconfirmed",
|
||
|
|
// "transactions",
|
||
|
|
// "toLegacyAddress"
|
||
|
|
"restURL"
|
||
|
|
])
|
||
|
|
})
|
||
|
|
})
|