Skip to content

Commit

Permalink
add currencyamount test
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnxie999 committed Jul 11, 2023
1 parent 1c2d051 commit 11e2a93
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/xrpl/test/models/clawback.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@ describe('Clawback', function () {
ValidationError,
'Clawback: invalid Amount',
)

const invalidStrAmount = {
TransactionType: 'Clawback',
Amount: '1234',
Account: 'rWYkbWkCeg8dP6rXALnjgZSjjLyih5NXm',
} as any

assert.throws(
() => validate(invalidStrAmount),
ValidationError,
'Clawback: invalid Amount',
)
})

it(`throws w/ invalid holder Account`, function () {
Expand Down

0 comments on commit 11e2a93

Please sign in to comment.