diff --git a/packages/xrpl/test/wallet/fundWallet.test.ts b/packages/xrpl/test/wallet/fundWallet.test.ts index c95a27b5..50a3b104 100644 --- a/packages/xrpl/test/wallet/fundWallet.test.ts +++ b/packages/xrpl/test/wallet/fundWallet.test.ts @@ -65,6 +65,17 @@ describe('Get Faucet host ', function () { ) }) + it('returns the Vala host', function () { + const expectedFaucet = FaucetNetwork.Vala + // @ts-expect-error Intentionally modifying private data for test + testContext.client.connection.url = FaucetNetwork.Vala + + assert.strictEqual( + getFaucetHost(testContext.client as Client), + expectedFaucet, + ) + }) + it('returns the correct faucetPath for Devnet host', function () { const expectedFaucetPath = FaucetNetworkPaths[FaucetNetwork.Devnet] // @ts-expect-error Intentionally modifying private data for test @@ -87,6 +98,17 @@ describe('Get Faucet host ', function () { ) }) + it('returns the correct faucetPath for Vala host', function () { + const expectedFaucetPath = FaucetNetworkPaths[FaucetNetwork.Vala] + // @ts-expect-error Intentionally modifying private data for test + testContext.client.connection.url = FaucetNetwork.Vala + + assert.strictEqual( + getDefaultFaucetPath(getFaucetHost(testContext.client as Client)), + expectedFaucetPath, + ) + }) + it('returns the correct faucetPath for undefined host', function () { const expectedFaucetPath = '/accounts'