- Removed orphaned code block in `js/app.js` that caused syntax errors during module loading.
- Updated `tests/helpers/moderation-test-helpers.mjs` to implement `resumePendingModeratedPlayback` and decoration logic in `MockApplication`, fixing `tests/app/moderation-overrides.test.mjs` and `tests/app/moderation-settings-refresh.test.mjs` failures.
Co-authored-by: PR0M3TH3AN <[email protected]>
- Clean up `verify_fix.mjs`, `verify_source_toggle.py`, and logs to fix potential lint/grep issues in CI.
- Define `normalizeHexPubkey` on test harness in `tests/helpers/moderation-test-helpers.mjs` to ensure robust `Application` mocking for `ModerationActionController` tests.
- Verify build and tests pass.
Co-authored-by: PR0M3TH3AN <[email protected]>
Override app.isAuthorBlocked in createModerationAppHarness when a
userBlocks mock is provided. This ensures that application logic
checking block status respects the mock state instead of querying
the uninitialized global singleton, fixing the failure in
handleModerationBlock tests.
Co-authored-by: PR0M3TH3AN <[email protected]>
Refactor `ModerationActionController` initialization in test harness to support dependency injection for `userBlocks`. This allows tests to use isolated mock instances instead of monkey-patching the global singleton, preventing race conditions when tests run in parallel or overlap.
Fixes intermittent failures in `tests/app/moderation-overrides.test.mjs` where `userBlocks` state leaked between tests.
Co-authored-by: PR0M3TH3AN <[email protected]>
- Fix `scripts/check-design-tokens.mjs` to allow a mobile breakpoint.
- Add Dev Container documentation to `CONTRIBUTING.md`.
- Fix missing dependency injection in `tests/helpers/moderation-test-helpers.mjs` to resolve some unit test failures in a fresh environment.