From f74eda4af6fe6bdf4bef0a48626577b30a7d7475 Mon Sep 17 00:00:00 2001 From: Jake Urban <10968980+JakeUrban@users.noreply.github.com> Date: Wed, 17 Aug 2022 10:41:01 -0700 Subject: [PATCH] add network calls to more test results (#96) * add network calls to result again * add CHANGELOG entries --- @stellar/anchor-tests/package.json | 2 +- .../src/tests/sep12/deleteCustomer.ts | 3 +++ CHANGELOG.md | 21 +++++++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/@stellar/anchor-tests/package.json b/@stellar/anchor-tests/package.json index fc07142..8449d4f 100644 --- a/@stellar/anchor-tests/package.json +++ b/@stellar/anchor-tests/package.json @@ -1,6 +1,6 @@ { "name": "@stellar/anchor-tests", - "version": "0.5.3", + "version": "0.5.4", "description": "stellar-anchor-tests is a library and command line interface for testing Stellar anchors.", "main": "./lib/index.js", "types": "./lib/index.d.ts", diff --git a/@stellar/anchor-tests/src/tests/sep12/deleteCustomer.ts b/@stellar/anchor-tests/src/tests/sep12/deleteCustomer.ts index dedb439..a0f5a67 100644 --- a/@stellar/anchor-tests/src/tests/sep12/deleteCustomer.ts +++ b/@stellar/anchor-tests/src/tests/sep12/deleteCustomer.ts @@ -101,6 +101,7 @@ const canDeleteCustomer: Test = { result, "application/json", ); + result.networkCalls.push(putCustomerCall); if (!putCustomerBody) return result; const getCustomerCall: NetworkCall = { request: new Request( @@ -113,6 +114,7 @@ const canDeleteCustomer: Test = { }, ), }; + result.networkCalls.push(getCustomerCall); await makeRequest(getCustomerCall, 200, result); if (result.failure) return result; const deleteCustomerCall: NetworkCall = { @@ -127,6 +129,7 @@ const canDeleteCustomer: Test = { }, ), }; + result.networkCalls.push(deleteCustomerCall); await makeRequest(deleteCustomerCall, 200, result); return result; }, diff --git a/CHANGELOG.md b/CHANGELOG.md index ca44432..bed0f56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,27 @@ This changelog documents all releases and included changes to the @stellar/ancho A breaking change will get clearly marked in this log. +## [v0.5.4](https://github.com/stellar/stellar-anchor-tests/compare/v0.5.3...v0.5.4) + +### Update + +- Add network calls to the test results for the following tests + - SEP-12: can delete a customer + +## [v0.5.3](https://github.com/stellar/stellar-anchor-tests/compare/v0.5.2...v0.5.3) + +### Update + +- Add network calls to the test results for the following tests + - SEP-12: memos differentiate customers registered by the same account + +## [v0.5.2](https://github.com/stellar/stellar-anchor-tests/compare/v0.5.1...v0.5.2) + +### Update + +- Use the account configured as the SEP-31 sending anchor when authenticating for the following test, if specified + - SEP-10: returns a valid JWT + ## [v0.5.1](https://github.com/stellar/stellar-anchor-tests/compare/v0.5.0...v0.5.1) ### Update