diff --git a/packages/xrpl/test/integration/transactions/permissionedDomain.test.ts b/packages/xrpl/test/integration/transactions/permissionedDomain.test.ts index 3e4013bc6d..069ae4d56b 100644 --- a/packages/xrpl/test/integration/transactions/permissionedDomain.test.ts +++ b/packages/xrpl/test/integration/transactions/permissionedDomain.test.ts @@ -38,13 +38,13 @@ describe('PermissionedDomainSet', function () { } // Step-1: Test the PermissionedDomainSet transaction - const tx_pd_set: PermissionedDomainSet = { + const txPDSet: PermissionedDomainSet = { TransactionType: 'PermissionedDomainSet', Account: testContext.wallet.classicAddress, AcceptedCredentials: [sampleCredential], } - await testTransaction(testContext.client, tx_pd_set, testContext.wallet) + await testTransaction(testContext.client, txPDSet, testContext.wallet) // Step-2: Validate the ledger_entry, account_objects RPC methods // validate the account_objects RPC @@ -61,18 +61,18 @@ describe('PermissionedDomainSet', function () { expect(pd.AcceptedCredentials).toEqual([sampleCredential]) // validate the ledger_entry RPC - const ledger_entry_request: LedgerEntryRequest = { + const ledgerEntryRequest: LedgerEntryRequest = { command: 'ledger_entry', // fetch the PD `index` from the previous account_objects RPC response index: pd.index, } - const ledger_entry_result = await testContext.client.request( - ledger_entry_request, + const ledgerEntryResult = await testContext.client.request( + ledgerEntryRequest, ) - assert.deepEqual(pd, ledger_entry_result.result.node) + assert.deepEqual(pd, ledgerEntryResult.result.node) // Step-3: Test the PDDelete transaction - const tx_pd_delete: PermissionedDomainDelete = { + const txPDDelete: PermissionedDomainDelete = { TransactionType: 'PermissionedDomainDelete', Account: testContext.wallet.classicAddress, // fetch the PD `index` from the previous account_objects RPC response @@ -81,7 +81,7 @@ describe('PermissionedDomainSet', function () { await testTransaction( testContext.client, - tx_pd_delete, + txPDDelete, testContext.wallet, ) }, diff --git a/packages/xrpl/test/models/permissionedDomainSet.test.ts b/packages/xrpl/test/models/permissionedDomainSet.test.ts index bb0cff7f09..7d51faa9e4 100644 --- a/packages/xrpl/test/models/permissionedDomainSet.test.ts +++ b/packages/xrpl/test/models/permissionedDomainSet.test.ts @@ -36,7 +36,6 @@ describe('PermissionedDomainSet', function () { tx.DomainID = 1234 const errorMessage = 'PermissionedDomainSet: invalid field DomainID' assert.throws(() => validate(tx), ValidationError, errorMessage) - assert.throws(() => validate(tx), ValidationError, errorMessage) }) it(`throws w/ missing field AcceptedCredentials`, function () { @@ -44,7 +43,6 @@ describe('PermissionedDomainSet', function () { const errorMessage = 'PermissionedDomainSet: missing field AcceptedCredentials' assert.throws(() => validate(tx), ValidationError, errorMessage) - assert.throws(() => validate(tx), ValidationError, errorMessage) }) it('throws when AcceptedCredentials exceeds maximum length', function () {