Convert to TypeScript #36
Annotations
8 errors
test/unit/mock-http.test.ts > Mocked API tests > should not retry on RATE_LIMIT_REACHED if maxRetries is 0:
test/unit/mock-http.test.ts#L152
AssertionError: expected error to match asymmetric matcher
- Expected
+ Received
- ObjectContaining {
- "message": "Response code 413 (Payload Too Large) RATE_LIMIT_REACHED: Request limit reached",
- "transloaditErrorCode": "RATE_LIMIT_REACHED",
- }
+ [RequestError: Nock: No match for request {
+ "method": "POST",
+ "url": "http://localhost/assemblies/a6b31d1e4f5842a2b7c81436d3939d96",
+ "headers": {
+ "transloadit-client": "node-sdk:3.0.2",
+ "accept": "application/json",
+ "content-type": "multipart/form-data; boundary=--------------------------643830081451532855118678",
+ "content-length": "557",
+ "accept-encoding": "gzip, deflate, br"
+ },
+ "body": "----------------------------643830081451532855118678\r\nContent-Disposition: form-data; name=\"params\"\r\n\r\n{\"auth\":{\"key\":\"\",\"expires\":\"2024-10-04T11:08:13.097Z\"}}\r\n----------------------------643830081451532855118678\r\nContent-Disposition: form-data; name=\"tus_num_expected_upload_files\"\r\n\r\n0\r\n----------------------------643830081451532855118678\r\nContent-Disposition: form-data; name=\"signature\"\r\n\r\nsha384:693745edb69bd9aa55696e560098e79496708de1fdc6cce3a32bd22e278f9ff274b6ec2eb4f9b35a30f9de2ebc7df42d\r\n----------------------------643830081451532855118678--\r\n"
+ }]
❯ test/unit/mock-http.test.ts:152:5
|
vitest (18)
Process completed with exit code 1.
|
vitest (22)
The job was canceled because "_18" failed.
|
test/unit/mock-http.test.ts > Mocked API tests > should not retry on RATE_LIMIT_REACHED if maxRetries is 0:
test/unit/mock-http.test.ts#L152
AssertionError: expected error to match asymmetric matcher
- Expected
+ Received
- ObjectContaining {
- "message": "Response code 413 (Payload Too Large) RATE_LIMIT_REACHED: Request limit reached",
- "transloaditErrorCode": "RATE_LIMIT_REACHED",
- }
+ [RequestError: Nock: No match for request {
+ "method": "POST",
+ "url": "http://localhost/assemblies/bddc0332ed58417b8d2b1a7c27cbf3e7",
+ "headers": {
+ "transloadit-client": "node-sdk:3.0.2",
+ "accept": "application/json",
+ "content-type": "multipart/form-data; boundary=--------------------------221175560828711650365721",
+ "content-length": "557",
+ "accept-encoding": "gzip, deflate, br"
+ },
+ "body": "----------------------------221175560828711650365721\r\nContent-Disposition: form-data; name=\"params\"\r\n\r\n{\"auth\":{\"key\":\"\",\"expires\":\"2024-10-04T11:08:14.791Z\"}}\r\n----------------------------221175560828711650365721\r\nContent-Disposition: form-data; name=\"tus_num_expected_upload_files\"\r\n\r\n0\r\n----------------------------221175560828711650365721\r\nContent-Disposition: form-data; name=\"signature\"\r\n\r\nsha384:7d029e2cc25fcf5070ebd3be37cc45d96b36e3b99c34075ed90479dfa3cd79744f8c64904db5201410d25cd65c6752f6\r\n----------------------------221175560828711650365721--\r\n"
+ }]
❯ test/unit/mock-http.test.ts:152:5
|
vitest (22)
Process completed with exit code 1.
|
vitest (20)
The job was canceled because "_18" failed.
|
test/unit/mock-http.test.ts > Mocked API tests > should not retry on RATE_LIMIT_REACHED if maxRetries is 0:
test/unit/mock-http.test.ts#L152
AssertionError: expected error to match asymmetric matcher
- Expected
+ Received
- ObjectContaining {
- "message": "Response code 413 (Payload Too Large) RATE_LIMIT_REACHED: Request limit reached",
- "transloaditErrorCode": "RATE_LIMIT_REACHED",
- }
+ [RequestError: Nock: No match for request {
+ "method": "POST",
+ "url": "http://localhost/assemblies/2babf8c0469c4f899e4cc1abf180eb6d",
+ "headers": {
+ "transloadit-client": "node-sdk:3.0.2",
+ "accept": "application/json",
+ "content-type": "multipart/form-data; boundary=--------------------------017540037249657356810054",
+ "content-length": "557",
+ "accept-encoding": "gzip, deflate, br"
+ },
+ "body": "----------------------------017540037249657356810054\r\nContent-Disposition: form-data; name=\"params\"\r\n\r\n{\"auth\":{\"key\":\"\",\"expires\":\"2024-10-04T11:08:13.160Z\"}}\r\n----------------------------017540037249657356810054\r\nContent-Disposition: form-data; name=\"tus_num_expected_upload_files\"\r\n\r\n0\r\n----------------------------017540037249657356810054\r\nContent-Disposition: form-data; name=\"signature\"\r\n\r\nsha384:5bc5d4a5b60a65383734a4d5cf5b2cbe43ed50dc9342eb92cb2e5a4ef9626c1b847acb3b01a8b334e5c4cf84dbd50ab8\r\n----------------------------017540037249657356810054--\r\n"
+ }]
❯ test/unit/mock-http.test.ts:152:5
|
vitest (20)
Process completed with exit code 1.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
package
Expired
|
35.5 KB |
|