Fix spoiler-alert imports (#24066)

This commit is contained in:
Blake Erickson 2023-10-23 15:14:58 -06:00 committed by GitHub
parent b3caa90f6e
commit 99e4087ade
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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) => {

View File

@ -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 () {