hotfix: add validation for voucher value #201
Annotations
2 errors and 2 warnings
__tests__/hooks/useDeploy.test.tsx > useDeploy hook > should handle successful deploy:
__tests__/hooks/useDeploy.test.tsx#L126
AssertionError: expected "spy" to be called with arguments: [ { …(8) } ]
Received:
1st spy call:
Array [
Object {
"aboutYou": Object {
"email": "email",
"geo": Object {
"x": 1,
"y": 2,
},
"location": "locationName",
"name": "name",
"type": "personal",
"website": "www.sarafu.network",
},
- "contractVersion": "0.5.6",
+ "contractVersion": "0.5.7",
"expiration": Object {
"communityFund": "0xEb3907eCad74a0013c259D5874AE7f22DcBcC95C",
"period": 43800,
"rate": 2,
"type": "gradual",
},
"nameAndProducts": Object {
"description": "description",
"name": "name",
"products": Array [],
"symbol": "symbol",
},
"options": Object {
"transfer": "no",
},
"signingAndPublishing": Object {
"pathLicense": true,
"termsAndConditions": true,
},
"valueAndSupply": Object {
"supply": 1,
"uoa": "BYTES",
"value": 1,
},
"voucherAddress": "0xD969e121939Ca0230aF31aa23D8553B6d4489082",
},
]
Number of calls: 1
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>
❯ __tests__/hooks/useDeploy.test.tsx:126:60
❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/.pnpm/@testing-library+dom@9.3.1/node_modules/@testing-library/dom/dist/config.js:47:12
❯ checkCallback node_modules/.pnpm/@testing-library+dom@9.3.1/node_modules/@testing-library/dom/dist/wait-for.js:121:77
❯ Timeout.checkRealTimersCallback node_modules/.pnpm/@testing-library+dom@9.3.1/node_modules/@testing-library/dom/dist/wait-for.js:115:16
|
test
Process completed with exit code 1.
|
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v2, actions/cache@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|