airqo-platform / airqo-platform/AirQo-api
Refactor Test Setup for Middleware Tests
Đang mở
- Ngôn ngữ chính
- JavaScript
- Star
- 26
- Fork
- 24
- Merge trung bình
- 5 giờ 36 phút
- Pull request đã merge (30 ngày)
- 81
Mô tả
As suggested by @coderabbitai[bot] in [this comment](https://github.com/airqo-platform/AirQo-api/pull/3699#discussion_r1807822929), consider refactoring the test setup in `ut_validateSelectedSites.js` to enhance maintainability. Specifically, you can use a `beforeEach` hook within the `describe` block to reduce duplication and keep the tests DRY.
**Pull Request**: https://github.com/airqo-platform/AirQo-api/pull/3699
**Requester**: @Baalmart
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.