airqo-platform / airqo-platform/AirQo-api
Add unit tests for `isEntityActive` function
Open
- Dominant language
- JavaScript
- Stars
- 26
- Forks
- 24
- Avg merge
- 5h 36m
- Merged PRs (30d)
- 81
Description
The `isEntityActive` function determines if an entity is active based on its `lastActive` timestamp. To ensure its correctness, especially with time calculations, we should add unit tests.
Related PR: https://github.com/airqo-platform/AirQo-api/pull/3473
Comment: https://github.com/airqo-platform/AirQo-api/pull/3473#discussion_r1765798562
Requested by @Baalmart.
Contributor guide
Assessment
This issue has not been assessed yet.