mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore(monorepo/server): trimindentation import
This commit is contained in:
parent
816355d397
commit
0c5a678a8a
@ -1,6 +1,6 @@
|
|||||||
import { describe, it, expect } from "vitest";
|
import { describe, it, expect } from "vitest";
|
||||||
import markdownExportService from "./markdown.js";
|
import markdownExportService from "./markdown.js";
|
||||||
import { trimIndentation } from "../../../spec/support/utils.js";
|
import { trimIndentation } from "@triliumnext/commons";
|
||||||
|
|
||||||
describe("Markdown export", () => {
|
describe("Markdown export", () => {
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { describe, expect, it } from "vitest";
|
import { describe, expect, it } from "vitest";
|
||||||
import html_sanitizer from "./html_sanitizer.js";
|
import html_sanitizer from "./html_sanitizer.js";
|
||||||
import { trimIndentation } from "../../spec/support/utils.js";
|
import { trimIndentation } from "@triliumnext/commons";
|
||||||
|
|
||||||
describe("sanitize", () => {
|
describe("sanitize", () => {
|
||||||
it("filters out position inline CSS", () => {
|
it("filters out position inline CSS", () => {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { describe, it, expect } from "vitest";
|
import { describe, it, expect } from "vitest";
|
||||||
import { trimIndentation } from "../../../spec/support/utils.js";
|
import { trimIndentation } from "@triliumnext/commons";
|
||||||
import markdownService from "./markdown.js";
|
import markdownService from "./markdown.js";
|
||||||
|
|
||||||
describe("markdown", () => {
|
describe("markdown", () => {
|
||||||
|
@ -10,7 +10,7 @@ import TaskContext from "../task_context.js";
|
|||||||
import cls from "../cls.js";
|
import cls from "../cls.js";
|
||||||
import sql_init from "../sql_init.js";
|
import sql_init from "../sql_init.js";
|
||||||
import { initializeTranslations } from "../i18n.js";
|
import { initializeTranslations } from "../i18n.js";
|
||||||
import { trimIndentation } from "../../../spec/support/utils.js";
|
import { trimIndentation } from "@triliumnext/commons";
|
||||||
const scriptDir = dirname(fileURLToPath(import.meta.url));
|
const scriptDir = dirname(fileURLToPath(import.meta.url));
|
||||||
|
|
||||||
async function testImport(fileName: string) {
|
async function testImport(fileName: string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user