Skip to content

Commit

Permalink
switch createValidateTests to JS
Browse files Browse the repository at this point in the history
  • Loading branch information
mvadari committed Sep 18, 2023
1 parent 3183bc7 commit 2c9b637
Show file tree
Hide file tree
Showing 10 changed files with 270 additions and 258 deletions.
174 changes: 0 additions & 174 deletions create_validate_tests.py

This file was deleted.

16 changes: 8 additions & 8 deletions packages/xrpl/test/models/XChainAccountCreateCommit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('XChainAccountCreateCommit', function () {
assert.doesNotThrow(() => validate(tx))
})

it(`throws w/ missing XChainBridge`, function () {
it('throws w/ missing XChainBridge', function () {
delete tx.XChainBridge

assert.throws(
Expand All @@ -54,7 +54,7 @@ describe('XChainAccountCreateCommit', function () {
)
})

it(`throws w/ invalid XChainBridge`, function () {
it('throws w/ invalid XChainBridge', function () {
tx.XChainBridge = { XChainDoor: 'test' }

assert.throws(
Expand All @@ -69,7 +69,7 @@ describe('XChainAccountCreateCommit', function () {
)
})

it(`throws w/ missing SignatureReward`, function () {
it('throws w/ missing SignatureReward', function () {
delete tx.SignatureReward

assert.throws(
Expand All @@ -84,7 +84,7 @@ describe('XChainAccountCreateCommit', function () {
)
})

it(`throws w/ invalid SignatureReward`, function () {
it('throws w/ invalid SignatureReward', function () {
tx.SignatureReward = { currency: 'ETH' }

assert.throws(
Expand All @@ -99,7 +99,7 @@ describe('XChainAccountCreateCommit', function () {
)
})

it(`throws w/ missing Destination`, function () {
it('throws w/ missing Destination', function () {
delete tx.Destination

assert.throws(
Expand All @@ -114,7 +114,7 @@ describe('XChainAccountCreateCommit', function () {
)
})

it(`throws w/ invalid Destination`, function () {
it('throws w/ invalid Destination', function () {
tx.Destination = 123

assert.throws(
Expand All @@ -129,7 +129,7 @@ describe('XChainAccountCreateCommit', function () {
)
})

it(`throws w/ missing Amount`, function () {
it('throws w/ missing Amount', function () {
delete tx.Amount

assert.throws(
Expand All @@ -144,7 +144,7 @@ describe('XChainAccountCreateCommit', function () {
)
})

it(`throws w/ invalid Amount`, function () {
it('throws w/ invalid Amount', function () {
tx.Amount = { currency: 'ETH' }

assert.throws(
Expand Down
Loading

0 comments on commit 2c9b637

Please sign in to comment.