 google-labs-jules[bot]andPR0M3TH3AN
|
0281968867
|
test: add comprehensive tests for config validation
Adds missing test cases to `tests/validate-config.test.mjs` to cover edge cases for:
- `ADMIN_SUPER_NPUB` (empty, invalid format)
- `PLATFORM_FEE_PERCENT` (negative, >100, infinite)
- `THEME_ACCENT_OVERRIDES` (invalid hex, invalid structure)
- Optional URLs (invalid URL, invalid protocol)
This ensures `validateInstanceConfig` correctly enforces configuration constraints.
Co-authored-by: PR0M3TH3AN <[email protected]>
|
2026-02-08 03:34:20 +00:00 |
|