Skip to content

Commit

Permalink
fix: remove hash_type=Type in test
Browse files Browse the repository at this point in the history
  • Loading branch information
classicalliu committed Aug 20, 2019
1 parent 397ee9d commit 9340e41
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/neuron-wallet/tests/models/lock-utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ describe('LockUtils Test', () => {

const lockHashes: string[] = await LockUtils.addressToAllLockHashes(bob.address)

expect(lockHashes).toEqual([bob.lockHash, bob.lockHashWhenType])
expect(lockHashes).toEqual([bob.lockHash])
})

it('addressesToAllLockHashes', async () => {
Expand All @@ -91,12 +91,7 @@ describe('LockUtils Test', () => {

const lockHashes: string[] = await LockUtils.addressesToAllLockHashes([bob.address, alice.address])

const expectedResult = [
bob.lockHash,
bob.lockHashWhenType,
alice.lockHash,
alice.lockHashWhenType,
]
const expectedResult = [bob.lockHash, alice.lockHash]

expect(lockHashes).toEqual(expectedResult)
})
Expand Down

0 comments on commit 9340e41

Please sign in to comment.