Skip to content

Commit

Permalink
main tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
owl352 committed Dec 9, 2024
1 parent 397b8f9 commit bb87cc5
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions packages/api/test/integration/main.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ describe('Other routes', () => {

mock.method(DAPI.prototype, 'getContestedState', async () => null)

mock.method(DAPI.prototype, 'getIdentityKeys', async () => null)

mock.method(tenderdashRpc, 'getBlockByHeight', async () => ({
block: {
header: {
Expand Down Expand Up @@ -69,6 +71,7 @@ describe('Other routes', () => {
identityTransaction = await fixtures.transaction(knex, {
block_hash: block.hash,
type: StateTransitionEnum.IDENTITY_CREATE,
data: '',
owner: identityIdentifier
})
identity = await fixtures.identity(knex, {
Expand Down Expand Up @@ -166,7 +169,7 @@ describe('Other routes', () => {
blockHash: identityTransaction.block_hash,
blockHeight: null,
type: identityTransaction.type,
data: '{}',
data: '',
timestamp: block.timestamp.toISOString(),
gasUsed: 0,
status: 'SUCCESS',
Expand Down Expand Up @@ -357,7 +360,14 @@ describe('Other routes', () => {
alias: 'dpns.dash',
contested: false,
status: 'ok'
}]
}],
totalGasSpent: 480000,
averageGasSpent: 9412,
topUpsGasSpent: 0,
withdrawalsGasSpent: 0,
lastWithdrawalHash: null,
publicKeys: [],
fundingCoreTx: null
}

assert.deepEqual({ identity: expectedIdentity }, body)
Expand Down

0 comments on commit bb87cc5

Please sign in to comment.