mirror of
https://github.com/discourse/discourse.git
synced 2025-02-02 00:10:45 +08:00
f6670aecfd
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. |
||
---|---|---|
.. | ||
assets | ||
controllers | ||
helpers | ||
jobs | ||
mailers | ||
models | ||
serializers | ||
services | ||
views |