airqo-platform / airqo-platform/AirQo-api
Enhance test cases for PUT endpoints in 'src/device-registry/routes/v2/test/ut_devices.js'
Open
- Dominant language
- JavaScript
- Stars
- 26
- Forks
- 24
- Avg merge
- 5h 36m
- Merged PRs (30d)
- 81
Description
The test cases for PUT endpoints in the file 'src/device-registry/routes/v2/test/ut_devices.js' need to be enhanced to improve their effectiveness and coverage.
Suggested improvements:
- Use realistic sample data instead of placeholders.
- Verify both query parameters and request body.
- Add negative test cases, including invalid input, non-existent devices, or when the controller method fails.
Reference PR: https://github.com/airqo-platform/AirQo-api/pull/3709
Reference comment: https://github.com/airqo-platform/AirQo-api/pull/3709#discussion_r1809625555
Requested by: @Baalmart
Contributor guide
Assessment
This issue has not been assessed yet.