Skip to content

Commit

Permalink
[ANCHOR-305] Update tests to support stellar:native asset (#114)
Browse files Browse the repository at this point in the history
* Update tests to support stellar:native asset

* Bump version
  • Loading branch information
philipliu authored Jun 15, 2023
1 parent 65a9997 commit 8a4bef5
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
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.8",
"version": "0.5.9",
"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
1 change: 0 additions & 1 deletion @stellar/anchor-tests/src/schemas/sep1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export const currencySchema = {
"is_asset_anchored",
"anchor_asset_type",
"code",
"issuer",
"desc",
"status",
],
Expand Down
2 changes: 1 addition & 1 deletion @stellar/anchor-tests/src/tests/sep38/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const hasValidInfoSchema: Test = {
const failure = makeFailure(this.failureModes.INVALID_ASSET_VALUE, {
asset: asset.asset,
});
if (parts.length !== 3) {
if (parts.length !== 3 && asset !== "stellar:native") {
result.failure = failure;
return result;
}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ See each project for more information. To install and run all applications:
```sh
git clone [email protected]:stellar/stellar-anchor-tests.git
cd stellar-anchor-tests
yarn install
yarn build:all
yarn start:all
```
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
"winston": "^3.3.3"
},
"peerDependencies": {
"@stellar/anchor-tests": "0.5.8"
"@stellar/anchor-tests": "0.5.9"
}
}

0 comments on commit 8a4bef5

Please sign in to comment.