Fix spoiler-alert imports (#24066)
This commit is contained in:
parent
b3caa90f6e
commit
99e4087ade
|
@ -3,7 +3,7 @@ import {
|
|||
addBlockDecorateCallback,
|
||||
addTagDecorateCallback,
|
||||
} from "discourse/lib/to-markdown";
|
||||
import applySpoiler from "discourse/plugins/discourse-spoiler-alert/lib/apply-spoiler";
|
||||
import applySpoiler from "discourse/plugins/spoiler-alert/lib/apply-spoiler";
|
||||
|
||||
function spoil(element) {
|
||||
element.querySelectorAll(".spoiler").forEach((spoiler) => {
|
||||
|
|
|
@ -2,7 +2,7 @@ import { test } from "qunit";
|
|||
import { withPluginApi } from "discourse/lib/plugin-api";
|
||||
import toMarkdown from "discourse/lib/to-markdown";
|
||||
import { discourseModule } from "discourse/tests/helpers/qunit-helpers";
|
||||
import { initializeSpoiler } from "discourse/plugins/discourse-spoiler-alert/initializers/spoiler-alert";
|
||||
import { initializeSpoiler } from "discourse/plugins/spoiler-alert/initializers/spoiler-alert";
|
||||
|
||||
discourseModule("Spoiler Alert | Unit | to-markdown", function (hooks) {
|
||||
hooks.beforeEach(function () {
|
||||
|
|
Loading…
Reference in New Issue