mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
DEV: fixes eslint/prettier on github actions (#10601)
This commit is contained in:
@ -1,15 +1,16 @@
|
||||
import I18n from "I18n";
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
import { clearPopupMenuOptionsCallback } from "discourse/controllers/composer";
|
||||
import selectKit from "helpers/select-kit-helper";
|
||||
|
||||
acceptance("Details Button", {
|
||||
loggedIn: true,
|
||||
beforeEach: function() {
|
||||
beforeEach: function () {
|
||||
clearPopupMenuOptionsCallback();
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test("details button", async assert => {
|
||||
test("details button", async (assert) => {
|
||||
const popupMenu = selectKit(".toolbar-popup-menu-options");
|
||||
|
||||
await visit("/");
|
||||
@ -109,7 +110,7 @@ test("details button", async assert => {
|
||||
);
|
||||
});
|
||||
|
||||
test("details button surrounds all selected text in a single details block", async assert => {
|
||||
test("details button surrounds all selected text in a single details block", async (assert) => {
|
||||
const multilineInput = "first line\n\nsecond line\n\nthird line";
|
||||
const popupMenu = selectKit(".toolbar-popup-menu-options");
|
||||
|
||||
|
@ -7,13 +7,13 @@ const defaultOpts = buildOptions({
|
||||
enable_emoji: true,
|
||||
emoji_set: "emoji_one",
|
||||
highlighted_languages: "json|ruby|javascript",
|
||||
default_code_lang: "auto"
|
||||
default_code_lang: "auto",
|
||||
},
|
||||
censoredWords: "shucks|whiz|whizzer",
|
||||
getURL: url => url
|
||||
getURL: (url) => url,
|
||||
});
|
||||
|
||||
test("details", assert => {
|
||||
test("details", (assert) => {
|
||||
const cooked = (input, expected, text) => {
|
||||
assert.equal(
|
||||
new PrettyText(defaultOpts).cook(input),
|
||||
|
Reference in New Issue
Block a user