fix: missing basic validation in route params #724
Annotations
9 errors and 1 warning
test/routes/token.test.ts > `/token/generate` - without params:
test/routes/token.test.ts#L35
Error: Snapshot ``/token/generate` - without params 1` mismatched
- Expected
+ Received
- "[
- {
- "code": "invalid_type",
- "expected": "object",
- "received": "null",
- "path": [],
- "message": "Expected object, received null"
- }
- ]"
+ "Invalid : Expected object, received null"
❯ test/routes/token.test.ts:35:24
|
test/services/transaction.test.ts > transactionProcessor > enqueueTransaction: should be add transaction request to queue:
test/services/transaction.test.ts#L130
AssertionError: expected 2 to be 1 // Object.is equality
- Expected
+ Received
- 1
+ 2
❯ test/services/transaction.test.ts:130:27
|
test/routes/rgbpp/transaction.test.ts > Post transaction with Invalid ckb_virtual_result JSON string:
test/routes/rgbpp/transaction.test.ts#L153
AssertionError: expected 500 to be 400 // Object.is equality
- Expected
+ Received
- 400
+ 500
❯ test/routes/rgbpp/transaction.test.ts:153:33
|
test (mempool)
Process completed with exit code 1.
|
test (electrs)
The job was canceled because "mempool" failed.
|
test/routes/token.test.ts > `/token/generate` - without params:
test/routes/token.test.ts#L35
Error: Snapshot ``/token/generate` - without params 1` mismatched
- Expected
+ Received
- "[
- {
- "code": "invalid_type",
- "expected": "object",
- "received": "null",
- "path": [],
- "message": "Expected object, received null"
- }
- ]"
+ "Invalid : Expected object, received null"
❯ test/routes/token.test.ts:35:24
|
test/services/transaction.test.ts > transactionProcessor > enqueueTransaction: should be add transaction request to queue:
test/services/transaction.test.ts#L130
AssertionError: expected 2 to be 1 // Object.is equality
- Expected
+ Received
- 1
+ 2
❯ test/services/transaction.test.ts:130:27
|
test/routes/rgbpp/transaction.test.ts > Post transaction with Invalid ckb_virtual_result JSON string:
test/routes/rgbpp/transaction.test.ts#L153
AssertionError: expected 500 to be 400 // Object.is equality
- Expected
+ Received
- 400
+ 500
❯ test/routes/rgbpp/transaction.test.ts:153:33
|
test (electrs)
Process completed with exit code 1.
|
test (mempool)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|