fix(tests): All unit and integration tests working

This commit is contained in:
Chris Troutner
2019-06-08 19:46:59 -07:00
parent 5546bbac17
commit 97f987cf17
4 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ describe("#Mining", () => {
"currentblocktx",
"difficulty",
"blockprioritypercentage",
"errors",
"warnings",
"networkhashps",
"pooledtx",
"chain"
+1 -1
View File
@@ -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,
+2 -1
View File
@@ -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
View File
@@ -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",