From 9da76a72488a438eba0f023585cee888045e677f Mon Sep 17 00:00:00 2001 From: Jamie Li Date: Tue, 7 Feb 2023 11:45:48 -0800 Subject: [PATCH] Remove the SEP-24 account requirement test in deposit (#107) --- .../anchor-tests/src/tests/sep24/deposit.ts | 40 ------------------- 1 file changed, 40 deletions(-) diff --git a/@stellar/anchor-tests/src/tests/sep24/deposit.ts b/@stellar/anchor-tests/src/tests/sep24/deposit.ts index 13783c3..d3df259 100644 --- a/@stellar/anchor-tests/src/tests/sep24/deposit.ts +++ b/@stellar/anchor-tests/src/tests/sep24/deposit.ts @@ -140,46 +140,6 @@ const depositRequiresAssetCode: Test = { }; tests.push(depositRequiresAssetCode); -const depositRequiresAccount: Test = { - assertion: "requires 'account' parameter", - sep: 24, - group: depositTestsGroup, - dependencies: depositRequiresAssetCode.dependencies, - context: depositRequiresAssetCode.context, - failureModes: depositRequiresAssetCode.failureModes, - async run(config: Config): Promise { - const result: Result = { networkCalls: [] }; - const postDepositCall: NetworkCall = { - request: new Request( - this.context.expects.transferServerUrl + depositEndpoint, - { - method: "POST", - headers: { - "Content-Type": "application/json", - Authorization: `Bearer ${this.context.expects.token}`, - }, - body: JSON.stringify({ asset_code: config.assetCode }), - }, - ), - }; - result.networkCalls.push(postDepositCall); - const errorResponse = await makeRequest( - postDepositCall, - 400, - result, - "application/json", - ); - if (result.failure || !errorResponse) return result; - if (!errorResponse.error) { - result.failure = makeFailure( - this.failureModes.NO_ERROR_RESPONSE_ATTRIBUTE, - ); - } - return result; - }, -}; -tests.push(depositRequiresAccount); - const depositRejectsInvalidAccount: Test = { assertion: "rejects invalid 'account' parameter", sep: 24,