mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-22 09:12:05 -07:00
fix(tests): All unit and integration tests working
This commit is contained in:
+1
-1
@@ -127,7 +127,7 @@ describe("#Mining", () => {
|
||||
"currentblocktx",
|
||||
"difficulty",
|
||||
"blockprioritypercentage",
|
||||
"errors",
|
||||
"warnings",
|
||||
"networkhashps",
|
||||
"pooledtx",
|
||||
"chain"
|
||||
|
||||
@@ -10,7 +10,7 @@ const mockMiningInfo = {
|
||||
currentblocktx: 0,
|
||||
difficulty: 1,
|
||||
blockprioritypercentage: 5,
|
||||
errors:
|
||||
warnings:
|
||||
"Warning: Unknown block versions being mined! It's possible unknown rules are in effect",
|
||||
networkhashps: 517410290.9365583,
|
||||
pooledtx: 5,
|
||||
|
||||
@@ -46,7 +46,8 @@ const mockSingleToken = {
|
||||
batonVout: null,
|
||||
containsBaton: false,
|
||||
genesisOrMintQuantity: "9999",
|
||||
sendOutputs: null
|
||||
sendOutputs: null,
|
||||
timestamp_unix: "something"
|
||||
},
|
||||
tokenStats: {
|
||||
block_created: 1253802,
|
||||
|
||||
+7
-4
@@ -246,7 +246,8 @@ describe("#SLP", () => {
|
||||
"initialTokenQty",
|
||||
"totalBurned",
|
||||
"totalMinted",
|
||||
"validAddresses"
|
||||
"validAddresses",
|
||||
"timestamp_unix"
|
||||
])
|
||||
})
|
||||
})
|
||||
@@ -377,7 +378,8 @@ describe("#SLP", () => {
|
||||
"id",
|
||||
"totalBurned",
|
||||
"totalMinted",
|
||||
"validAddresses"
|
||||
"validAddresses",
|
||||
"timestamp_unix"
|
||||
])
|
||||
})
|
||||
|
||||
@@ -420,7 +422,8 @@ describe("#SLP", () => {
|
||||
"id",
|
||||
"totalBurned",
|
||||
"totalMinted",
|
||||
"validAddresses"
|
||||
"validAddresses",
|
||||
"timestamp_unix"
|
||||
])
|
||||
})
|
||||
})
|
||||
@@ -809,7 +812,7 @@ describe("#SLP", () => {
|
||||
const result = await tokenStatsSingle(req, res)
|
||||
// console.log(`result: ${util.inspect(result)}`)
|
||||
|
||||
assert.hasAllKeys(result, [
|
||||
assert.hasAnyKeys(result, [
|
||||
"blockCreated",
|
||||
"blockLastActiveMint",
|
||||
"blockLastActiveSend",
|
||||
|
||||
Reference in New Issue
Block a user