discourse-shared-edits/test
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
..
javascripts DEV: Fix rich-mode-sync unit tests for new plugin build system (#151) 2026-03-09 09:46:25 +00:00