Add tests to api routes #13
Annotations
5 errors and 1 warning
app/api/retrieve-ingest/RetrieveIngestRoute.test.ts > GET /api/retrieve-json > returns a 400 error when the query parameter is missing:
app/api/retrieve-ingest/RetrieveIngestRoute.test.ts#L98
AssertionError: expected { Object (error) } to deeply equal { Object (error) }
- Expected
+ Received
Object {
- "error": "Invalid or missing query parameter",
+ "error": "Invalid or missing query parameter. \"ref\" is required",
}
❯ app/api/retrieve-ingest/RetrieveIngestRoute.test.ts:98:26
|
Run all tests (20.x)
Process completed with exit code 1.
|
Run all tests (22.x)
The job was canceled because "_20_x" failed.
|
app/api/retrieve-ingest/RetrieveIngestRoute.test.ts > GET /api/retrieve-json > returns a 400 error when the query parameter is missing:
app/api/retrieve-ingest/RetrieveIngestRoute.test.ts#L98
AssertionError: expected { Object (error) } to deeply equal { Object (error) }
- Expected
+ Received
Object {
- "error": "Invalid or missing query parameter",
+ "error": "Invalid or missing query parameter. \"ref\" is required",
}
❯ app/api/retrieve-ingest/RetrieveIngestRoute.test.ts:98:26
|
Run all tests (22.x)
Process completed with exit code 1.
|
Run all tests (20.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|