Skip to content

Commit

Permalink
Restore test
Browse files Browse the repository at this point in the history
  • Loading branch information
yagopv committed May 8, 2024
1 parent 4dba881 commit 85d1958
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ describe('getTransactionConfirmations', () => {
.to.be.rejectedWith('Invalid safeTxHash')
})

it('should return an empty array if the safeTxHash is not found', async () => {
const safeTxHash = '0x317834aea988fd3cfa54fd8b2be2c96b4fd70a14d8c9470a7110576b01e6480b'
const transactionConfirmations = await safeApiKit.getTransactionConfirmations(safeTxHash)
chai.expect(transactionConfirmations.count).to.be.equal(0)
chai.expect(transactionConfirmations.results.length).to.be.equal(0)
})

it('should return the transaction with the given safeTxHash', async () => {
const safeTxHash = '0x317834aea988fd3cfa54fd8b2be2c96b4fd70a14d8c9470a7110576b01e6480a'
const transactionConfirmations = await safeApiKit.getTransactionConfirmations(safeTxHash)
Expand Down

0 comments on commit 85d1958

Please sign in to comment.