discourse-shared-edits/test/javascripts/unit/lib
David Taylor f9906eb3fb
DEV: Fix rich-mode-sync unit tests for new plugin build system (#151)
With the new plugin build system, ES module exports become non-configurable,
preventing Sinon from stubbing them directly. This caused two unit tests
to fail when trying to stub `getMarkdownFromView` from the yjs-document module.

The fix adds dependency injection support to RichModeSync via a
`_getMarkdownFromView` constructor option, allowing tests to provide a
mock function without needing to stub module exports.
2026-03-09 09:46:25 +00:00
..
cursor-overlay-test.js FEATURE: yjs-based collaborative editing with state recovery and cursor sync 2026-02-13 11:34:52 +11:00
rich-mode-sync-test.js DEV: Fix rich-mode-sync unit tests for new plugin build system (#151) 2026-03-09 09:46:25 +00:00