-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
Fully Compatible
-
200
-
None
-
None
-
None
-
None
-
None
-
None
-
None
- Refactor query_settings_raw_data.js to use mochalite
Rewrites the query_settings_raw_data.js test to use the mochalite framework, improving test organization and readability. The test now uses a describe/it structure to clearly separate test cases for find, aggregate, and distinct commands with different rawData parameter values.
The refactored test includes:
- Tests verifying that commands with rawData=false correctly apply query settings
- Tests confirming that commands with rawData=true fail validation when setting query settings
- Placeholder tests (commented out with TODOs) for future work on query shape hash calculations
This change maintains the same test coverage while making the test structure more maintainable and easier to understand.