mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
add base tx test
This commit is contained in:
@@ -232,4 +232,17 @@ describe('BaseTransaction', function () {
|
||||
'BaseTransaction: invalid Memos',
|
||||
)
|
||||
})
|
||||
|
||||
it(`Handles invalid NetworkID`, function () {
|
||||
const invalidNetworkID = {
|
||||
Account: 'r97KeayHuEsDwyU1yPBVtMLLoQr79QcRFe',
|
||||
TransactionType: 'Payment',
|
||||
NetworkID: '1024',
|
||||
}
|
||||
assert.throws(
|
||||
() => validateBaseTransaction(invalidNetworkID),
|
||||
ValidationError,
|
||||
'BaseTransaction: invalid NetworkID',
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user