From a679128f02f3d7953a4870a12a56c50e583e8c81 Mon Sep 17 00:00:00 2001 From: Denis Angell Date: Mon, 6 Feb 2023 10:19:01 -0500 Subject: [PATCH] rename IC to Token --- packages/xrpl/test/integration/setup.ts | 13 +++++++++---- .../integration/transactions/escrowCreate.test.ts | 6 +++--- .../transactions/paymentChannelClaim.test.ts | 4 ++-- .../transactions/paymentChannelCreate.test.ts | 4 ++-- .../transactions/paymentChannelFund.test.ts | 4 ++-- 5 files changed, 18 insertions(+), 13 deletions(-) diff --git a/packages/xrpl/test/integration/setup.ts b/packages/xrpl/test/integration/setup.ts index 8867c39a..fd6023bc 100644 --- a/packages/xrpl/test/integration/setup.ts +++ b/packages/xrpl/test/integration/setup.ts @@ -9,7 +9,7 @@ export async function teardownClient(this: Mocha.Context): Promise { } // eslint-disable-next-line max-params -- need comments -async function initIC( +async function initToken( client: Client, wallet: Wallet, destination: Wallet, @@ -111,7 +111,7 @@ async function initIC( export async function setupClient( this: Mocha.Context, server = serverUrl, - ic?: boolean | false, + token?: boolean | false, ): Promise { this.wallet = Wallet.generate() this.destination = Wallet.generate() @@ -124,8 +124,13 @@ export async function setupClient( await fundAccount(this.client, this.wallet) await fundAccount(this.client, this.destination) await fundAccount(this.client, this.gateway) - if (ic) { - await initIC(this.client, this.wallet, this.destination, this.gateway) + if (token) { + await initToken( + this.client, + this.wallet, + this.destination, + this.gateway, + ) } resolve() }) diff --git a/packages/xrpl/test/integration/transactions/escrowCreate.test.ts b/packages/xrpl/test/integration/transactions/escrowCreate.test.ts index 0c990c40..ce4e180e 100644 --- a/packages/xrpl/test/integration/transactions/escrowCreate.test.ts +++ b/packages/xrpl/test/integration/transactions/escrowCreate.test.ts @@ -12,10 +12,10 @@ const TIMEOUT = 20000 describe('EscrowCreate', function () { this.timeout(TIMEOUT) - beforeEach(_.partial(setupClient, serverUrl)) + beforeEach(_.partial(setupClient, serverUrl, true)) afterEach(teardownClient) - it('native', async function () { + it('xrp test', async function () { // get the most recent close_time from the standalone container for finish after. const CLOSE_TIME: number = ( await this.client.request({ @@ -47,7 +47,7 @@ describe('EscrowCreate', function () { ) }) - it('ic', async function () { + it('token test', async function () { // get the most recent close_time from the standalone container for finish after. const CLOSE_TIME: number = ( await this.client.request({ diff --git a/packages/xrpl/test/integration/transactions/paymentChannelClaim.test.ts b/packages/xrpl/test/integration/transactions/paymentChannelClaim.test.ts index e74cc395..6f36812d 100644 --- a/packages/xrpl/test/integration/transactions/paymentChannelClaim.test.ts +++ b/packages/xrpl/test/integration/transactions/paymentChannelClaim.test.ts @@ -15,7 +15,7 @@ describe('PaymentChannelClaim', function () { beforeEach(_.partial(setupClient, serverUrl, true)) afterEach(teardownClient) - it('native', async function () { + it('xrp test', async function () { const wallet2 = await generateFundedWallet(this.client) const paymentChannelCreate: PaymentChannelCreate = { TransactionType: 'PaymentChannelCreate', @@ -47,7 +47,7 @@ describe('PaymentChannelClaim', function () { await testTransaction(this.client, paymentChannelClaim, this.wallet) }) - it('ic', async function () { + it('token test', async function () { const paymentChannelCreate: PaymentChannelCreate = { TransactionType: 'PaymentChannelCreate', Account: this.wallet.classicAddress, diff --git a/packages/xrpl/test/integration/transactions/paymentChannelCreate.test.ts b/packages/xrpl/test/integration/transactions/paymentChannelCreate.test.ts index d6fe9b6e..2775298f 100644 --- a/packages/xrpl/test/integration/transactions/paymentChannelCreate.test.ts +++ b/packages/xrpl/test/integration/transactions/paymentChannelCreate.test.ts @@ -14,7 +14,7 @@ describe('PaymentChannelCreate', function () { beforeEach(_.partial(setupClient, serverUrl, true)) afterEach(teardownClient) - it('native', async function () { + it('xrp test', async function () { const wallet2 = await generateFundedWallet(this.client) const paymentChannelCreate: PaymentChannelCreate = { TransactionType: 'PaymentChannelCreate', @@ -27,7 +27,7 @@ describe('PaymentChannelCreate', function () { await testTransaction(this.client, paymentChannelCreate, this.wallet) }) - it('ic', async function () { + it('token test', async function () { const paymentChannelCreate: PaymentChannelCreate = { TransactionType: 'PaymentChannelCreate', Account: this.wallet.classicAddress, diff --git a/packages/xrpl/test/integration/transactions/paymentChannelFund.test.ts b/packages/xrpl/test/integration/transactions/paymentChannelFund.test.ts index c6728bcc..2fd23aa8 100644 --- a/packages/xrpl/test/integration/transactions/paymentChannelFund.test.ts +++ b/packages/xrpl/test/integration/transactions/paymentChannelFund.test.ts @@ -15,7 +15,7 @@ describe('PaymentChannelFund', function () { beforeEach(_.partial(setupClient, serverUrl, true)) afterEach(teardownClient) - it('native', async function () { + it('xrp test', async function () { const wallet2 = await generateFundedWallet(this.client) const paymentChannelCreate: PaymentChannelCreate = { TransactionType: 'PaymentChannelCreate', @@ -45,7 +45,7 @@ describe('PaymentChannelFund', function () { await testTransaction(this.client, paymentChannelFund, this.wallet) }) - it('ic', async function () { + it('token test', async function () { const paymentChannelCreate: PaymentChannelCreate = { TransactionType: 'PaymentChannelCreate', Account: this.wallet.classicAddress,