Skip to content

Commit

Permalink
Update updatemasternode.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
imkven committed Nov 29, 2022
1 parent 3c35b7e commit 399b613
Showing 1 changed file with 5 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@ import { Testing, TestingGroup } from '@defichain/jellyfish-testing'
import { RegTestFoundationKeys } from '@defichain/jellyfish-network'

describe('Update Masternode', () => {
const masternodeState = [
'PRE_ENABLED',
'ENABLED',
'PRE_RESIGNED',
'RESIGNED',
'PRE_BANNED',
'BANNED',
'UNKNOWN'
]
const container = new MasterNodeRegTestContainer()
const client = new ContainerAdapterClient(container)

Expand Down Expand Up @@ -80,14 +71,13 @@ describe('Update Masternode', () => {
resignHeight: expect.any(Number),
resignTx: expect.any(String),
collateralTx: expect.any(String),
state: expect.any(String),
state: 'ENABLED',
mintedBlocks: expect.any(Number),
ownerIsMine: expect.any(Boolean),
localMasternode: expect.any(Boolean),
operatorIsMine: expect.any(Boolean),
targetMultipliers: expect.any(Object)
})
expect(masternodeState).toContain(masternodesAfter[masternodeId].state)
})

it('should updateMasternode operatorAddress with bech32 address', async () => {
Expand Down Expand Up @@ -119,14 +109,13 @@ describe('Update Masternode', () => {
resignHeight: expect.any(Number),
resignTx: expect.any(String),
collateralTx: expect.any(String),
state: expect.any(String),
state: 'ENABLED',
mintedBlocks: expect.any(Number),
ownerIsMine: expect.any(Boolean),
localMasternode: expect.any(Boolean),
operatorIsMine: expect.any(Boolean),
targetMultipliers: expect.any(Object)
})
expect(masternodeState).toContain(masternodesAfter[masternodeId].state)
})

it('should updateMasternode rewardAddress with bech32 address', async () => {
Expand Down Expand Up @@ -158,14 +147,13 @@ describe('Update Masternode', () => {
resignHeight: expect.any(Number),
resignTx: expect.any(String),
collateralTx: expect.any(String),
state: expect.any(String),
state: 'ENABLED',
mintedBlocks: expect.any(Number),
ownerIsMine: expect.any(Boolean),
localMasternode: expect.any(Boolean),
operatorIsMine: expect.any(Boolean),
targetMultipliers: expect.any(Object)
})
expect(masternodeState).toContain(masternodesAfter[masternodeId].state)
})

it('should update multiple address simultaneously with bech32 address', async () => {
Expand Down Expand Up @@ -196,14 +184,13 @@ describe('Update Masternode', () => {
resignHeight: expect.any(Number),
resignTx: expect.any(String),
collateralTx: expect.any(String),
state: expect.any(String),
state: 'ENABLED',
mintedBlocks: expect.any(Number),
ownerIsMine: expect.any(Boolean),
localMasternode: expect.any(Boolean),
operatorIsMine: expect.any(Boolean),
targetMultipliers: expect.any(Object)
})
expect(masternodeState).toContain(masternodes[masternodeId].state)
})

it('should update multiple address simultaneously with legacy address', async () => {
Expand Down Expand Up @@ -234,14 +221,13 @@ describe('Update Masternode', () => {
resignHeight: expect.any(Number),
resignTx: expect.any(String),
collateralTx: expect.any(String),
state: expect.any(String),
state: 'ENABLED',
mintedBlocks: expect.any(Number),
ownerIsMine: expect.any(Boolean),
localMasternode: expect.any(Boolean),
operatorIsMine: expect.any(Boolean),
targetMultipliers: expect.any(Object)
})
expect(masternodeState).toContain(masternodes[masternodeId].state)
})

it('should updateMasternode with utxos', async () => {
Expand Down

0 comments on commit 399b613

Please sign in to comment.