mirror of
https://github.com/discourse/discourse.git
synced 2025-02-11 13:55:07 +00:00
This test was passing, but the environment it was testing was incorrect. The `image-controls` markdown rule allowlists several svgs when previewing. But since `previewing: true` is only set on the parent `ComposerEditor` component, the test in `DEditor` wasn't aware of that, so the output was ignoring the `previewing` option. This moves the test one level higher, to `ComposerEditor`, and because now `previewing: true` is correctly used, it updates the test to show that the svg element is present, but an `onload` attributes is stripped.