airqo-platform / airqo-platform/AirQo-api

Refactor Test Setup for Middleware Tests

Đang mở
#3,701 0 bình luận 0 reaction 1 người được giao Được @Baalmart nhận Xem trên GitHub
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

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.