airqo-platform / AirQo-api

This repo contains API definitions for the AirQo platform
MIT License
22 stars 20 forks source link

Add Unit Tests for Custom Sanitizers in 'sites.js' #3490

Open coderabbitai[bot] opened 2 weeks ago

coderabbitai[bot] commented 2 weeks ago

The custom sanitizers for id and site_id in sites.js convert input values to ObjectId. These lines are not currently covered by tests. To ensure the sanitization logic works as intended and to prevent potential issues, please consider adding unit tests for these sanitizers.

PR: https://github.com/airqo-platform/AirQo-api/pull/3489 Comment: https://github.com/airqo-platform/AirQo-api/pull/3489#discussion_r1771370131

Requested by: @Baalmart