DC-004 (partial): 19→15 ESLint warnings — fixed logging.js & http.js
Fixed: - src/utils/logging.js: removed unused path import, split nested ternary, renamed unused logEntry → _logEntry - src/utils/http.js: renamed unused timeout destructure → _timeout, split both nested ternaries in getSetCookie (replace_all accidentally renamed one _httpFetch, restored) Remaining 15 warnings: - 4 require-await (async functions kept for API consistency — add eslint-disable comments) - 4 max-depth nesting - 2 complexity (loadSiteConfig, getProviderConfig) - 1 unused platformPaths in config/migrations.js - 1 in logging.js (ternary not detected as fixed — needs review) - 1 in http.js (same) All 759 tests still pass.
This commit is contained in:
+2
-2
@@ -47,8 +47,8 @@
|
||||
- **details:** End-to-end test: no token → 401, wrong token → 403, valid TOTP → session token → authenticated request succeeds. Cover the full `/api/auth/check` → session → endpoint flow.
|
||||
|
||||
### DC-007: Add tests for untested modules
|
||||
- **status:** todo
|
||||
- **owner:**
|
||||
- **status:** in-progress
|
||||
- **owner:** krystie
|
||||
- **details:** These modules have NO test coverage: `dns-propagation.js`, `notification-manager.js`, `ssl-monitor.js`, `log-digest.js`, `metrics.js`, `config-drift-detector.js`, `auto-restart-manager.js`. Add at least basic smoke tests for each.
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user