Bug: Test for non-existing transaction expecting a 200
Closed this issue · 0 comments
vitchor commented
The "returns a proper error for a non-existing transaction by id" test is breaking for 404 responses. Here's the output:
Error: expect(received).toContain(expected) // indexOf
Expected value: 200
Received array: [404]
at getTransactionBy (/usr/src/app/cases/util/transactions.js:22:28)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at Object.<anonymous> (/usr/src/app/cases/transaction.test.js:135:18)