mirror of
https://ghfast.top/https://github.com/discourse/discourse-shared-edits.git
synced 2026-05-09 19:12:26 +08:00
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. |
||
|---|---|---|
| .. | ||
| cursor-overlay-test.js | ||
| rich-mode-sync-test.js | ||