sort by date and mutation, add unit test #1838
Annotations
3 errors and 1 warning
Run unit test:
components/src/lapisApi/lapisApi.ts#L171
UnknownLapisError: : {"error":["Request body did not match: expected { country: 'Germany', …(1) } to deeply equal { country: 'Germany', …(1) } - expected: {\"country\":\"Germany\",\"fields\":[\"date\",\"location\",\"reference\",\"nucleotideMutationFrequency\",\"aminoAcidMutationFrequency\"]} - actual {\"country\":\"Germany\",\"fields\":[\"date\",\"location\",\"nucleotideMutationFrequency\",\"aminoAcidMutationFrequency\"]}"]}
❯ handleErrors src/lapisApi/lapisApi.ts:171:19
❯ Module.fetchDetails src/lapisApi/lapisApi.ts:65:5
❯ FetchDetailsOperator.evaluate src/operator/FetchDetailsOperator.ts:16:13
❯ Module.queryWastewaterMutationsOverTime src/query/queryWastewaterMutationsOverTime.ts:26:19
❯ src/query/queryWastewaterMutationsOverTime.spec.ts:45:24
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 400, requestedData: 'aggregated data' }
|
Run unit test:
components/src/query/queryWastewaterMutationsOverTime.spec.ts#L90
AssertionError: expected [Function] to throw error matching /^Failed to parse mutation frequency/ but got ': {"error":["Request body did not mat…'
- Expected:
/^Failed to parse mutation frequency/
+ Received:
": {\"error\":[\"Request body did not match: expected { country: 'Germany', …(1) } to deeply equal { country: 'Germany', …(1) } - expected: {\\\"country\\\":\\\"Germany\\\",\\\"fields\\\":[\\\"date\\\",\\\"location\\\",\\\"reference\\\",\\\"nucleotideMutationFrequency\\\",\\\"aminoAcidMutationFrequency\\\"]} - actual {\\\"country\\\":\\\"Germany\\\",\\\"fields\\\":[\\\"date\\\",\\\"location\\\",\\\"nucleotideMutationFrequency\\\",\\\"aminoAcidMutationFrequency\\\"]}\"]}"
❯ src/query/queryWastewaterMutationsOverTime.spec.ts:90:9
|
Run unit test
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading