mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-22 01:02:05 -07:00
Revert "Blockchain refactor [WIP]"
This commit is contained in:
@@ -115,10 +115,6 @@ describe("#BlockchainRouter", () => {
|
||||
)
|
||||
})
|
||||
|
||||
// it("return proper error connection is refused", async () => {
|
||||
//
|
||||
// })
|
||||
|
||||
it("should GET /getBestBlockHash", async () => {
|
||||
// Mock the RPC call for unit tests.
|
||||
if (process.env.TEST === "unit") {
|
||||
@@ -128,7 +124,7 @@ describe("#BlockchainRouter", () => {
|
||||
}
|
||||
|
||||
const result = await getBestBlockHash(req, res)
|
||||
// console.log(`result: ${util.inspect(result)}`)
|
||||
//console.log(`result: ${util.inspect(result)}`)
|
||||
|
||||
assert.isString(result)
|
||||
assert.equal(result.length, 64, "Hash string is fixed length")
|
||||
|
||||
Reference in New Issue
Block a user