unit test fixes + error refactor
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 13m41s
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 13m41s
This commit is contained in:
@@ -283,7 +283,7 @@ describe('User Routes (/api/users)', () => {
|
||||
it('should return 400 for an invalid listId on DELETE', async () => {
|
||||
const response = await supertest(app).delete('/api/users/shopping-lists/abc');
|
||||
expect(response.status).toBe(400);
|
||||
expect(response.body.message).toBe('Invalid list ID.');
|
||||
expect(response.body.message).toBe("Invalid ID for parameter 'listId'. Must be a number.");
|
||||
});
|
||||
|
||||
describe('DELETE /shopping-lists/:listId', () => {
|
||||
|
||||
Reference in New Issue
Block a user