Skip to content

Commit f1ee3c7

Browse files
committed
testing update
1 parent 2618281 commit f1ee3c7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backend/src/controllers/pointController.test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ describe('pointController', () => {
3939
req.body = { lat: 1.0, lon: 2.0 }; // missing temp
4040
await addPoint(req, res);
4141
expect(res.status).toHaveBeenCalledWith(400);
42-
expect(res.json).toHaveBeenCalledWith({ message: 'Missing required fields' });
42+
expect(res.json).toHaveBeenCalledWith({
43+
message: 'Latitude, longitude and temperature are required.',
44+
success: false
45+
});
4346
});
4447

4548
it('404 if user not found', async () => {

0 commit comments

Comments
 (0)