airqo-platform / airqo-platform/AirQo-api
Potential issue with res.status stub implementation in tests
Abierto
- Lenguaje dominante
- JavaScript
- Estrellas
- 26
- Forks
- 24
- Merge medio
- 5 h 36 min
- PR fusionados (30 d)
- 81
Descripción
In 'src/device-registry/routes/v2/test/ut_devices.js', within the 'beforeEach' hook, the 'res.status' stub is set to return 'res' before 'res' is fully defined. This could lead to unexpected behavior.
Referenced PR: https://github.com/airqo-platform/AirQo-api/pull/3709
Comment URL: https://github.com/airqo-platform/AirQo-api/pull/3709#discussion_r1809625562
Reported by @Baalmart.
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.