Skip to content

Commit

Permalink
Merge pull request #327 from ardriveapp/PE-2203
Browse files Browse the repository at this point in the history
PE-2203: Adds test case for custom tags
  • Loading branch information
matibat authored Sep 19, 2022
2 parents bb0f79a + 392d34f commit 3c9f99e
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 13 deletions.
10 changes: 5 additions & 5 deletions .pnp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"types": "./lib/index.d.ts",
"dependencies": {
"ardrive-core-js": "1.17.0",
"ardrive-core-js": "1.18.0",
"arweave": "1.11.4",
"axios": "^0.21.1",
"bn.js": "^5.2.1",
Expand Down
13 changes: 11 additions & 2 deletions src/CLICommand/parameters_helper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -723,15 +723,24 @@ describe('ParametersHelper class', () => {
'Tag-1',
'Val 1',
'Tag 2',
'Val 2'
'Val 2',
'App-Name',
'My arweave app',
'App-Version',
'1.2.3'
]);

await cmd.action.then((options) => {
const parameters = new ParametersHelper(options);
const metaDataResult = parameters.getCustomMetaData();

expect(metaDataResult).to.deep.equal({
metaDataGqlTags: { 'Tag 2': 'Val 2', 'Tag-1': 'Val 1' }
metaDataGqlTags: {
'Tag 2': 'Val 2',
'Tag-1': 'Val 1',
'App-Name': 'My arweave app',
'App-Version': '1.2.3'
}
});
});
});
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1700,7 +1700,7 @@ __metadata:
"@types/source-map-support": ^0
"@typescript-eslint/eslint-plugin": ^4.18.0
"@typescript-eslint/parser": ^4.18.0
ardrive-core-js: 1.17.0
ardrive-core-js: 1.18.0
arweave: 1.11.4
axios: ^0.21.1
bn.js: ^5.2.1
Expand Down Expand Up @@ -1728,9 +1728,9 @@ __metadata:
languageName: unknown
linkType: soft

"ardrive-core-js@npm:1.17.0":
version: 1.17.0
resolution: "ardrive-core-js@npm:1.17.0"
"ardrive-core-js@npm:1.18.0":
version: 1.18.0
resolution: "ardrive-core-js@npm:1.18.0"
dependencies:
"@alexsasharegan/simple-cache": ^3.3.3
arbundles: ^0.6.19
Expand All @@ -1748,7 +1748,7 @@ __metadata:
smartweave: ^0.4.49
utf8: ^3.0.0
uuid: ^8.3.2
checksum: 925e9c0fa08b1063e4cca489f7cb6f054d75b44b64a170a73999267d786bcd91f89647be9211cc5335e46cdcd59dae67411fa2e28f27a21081917b58e5418517
checksum: 91e407136871d36ebf7cf6522486cf20380325291f78552756b4ec349a41f90fafc62963376a405e1433cf5bd2b6df4c022c043fc501216c9f7f281a6e00640f
languageName: node
linkType: hard

Expand Down

0 comments on commit 3c9f99e

Please sign in to comment.