Skip to content

Commit

Permalink
add network calls to more test results (#96)
Browse files Browse the repository at this point in the history
* add network calls to result again

* add CHANGELOG entries
  • Loading branch information
JakeUrban authored Aug 17, 2022
1 parent f92edc2 commit f74eda4
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion @stellar/anchor-tests/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 3 additions & 0 deletions @stellar/anchor-tests/src/tests/sep12/deleteCustomer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ const canDeleteCustomer: Test = {
result,
"application/json",
);
result.networkCalls.push(putCustomerCall);
if (!putCustomerBody) return result;
const getCustomerCall: NetworkCall = {
request: new Request(
Expand All @@ -113,6 +114,7 @@ const canDeleteCustomer: Test = {
},
),
};
result.networkCalls.push(getCustomerCall);
await makeRequest(getCustomerCall, 200, result);
if (result.failure) return result;
const deleteCustomerCall: NetworkCall = {
Expand All @@ -127,6 +129,7 @@ const canDeleteCustomer: Test = {
},
),
};
result.networkCalls.push(deleteCustomerCall);
await makeRequest(deleteCustomerCall, 200, result);
return result;
},
Expand Down
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f74eda4

Please sign in to comment.