mirror of
https://github.com/outline/outline.git
synced 2026-11-29 16:40:27 +03:00
Fix test content to avoid markdown heading override
- Change test content from '# Test content' to 'Test content without heading' - This prevents the documentImporter from extracting title from content instead of filename - Ensures tests properly validate the filename-based title extraction fix
This commit is contained in:
1 parent
167fb4d7ff
commit
cd8a30c476
1 file changed
+5
-5
@@ -340,7 +340,7 @@ describe("documentImporter", () => {
|
||||
user,
|
||||
mimeType: "text/markdown",
|
||||
fileName,
|
||||
content: "# Test content",
|
||||
content: "Test content without heading",
|
||||
ctx: createContext({ user, transaction }),
|
||||
})
|
||||
);
|
||||
@@ -365,7 +365,7 @@ describe("documentImporter", () => {
|
||||
user,
|
||||
mimeType: "text/markdown",
|
||||
fileName,
|
||||
content: "# Test content",
|
||||
content: "Test content without heading",
|
||||
ctx: createContext({ user, transaction }),
|
||||
})
|
||||
);
|
||||
@@ -388,7 +388,7 @@ describe("documentImporter", () => {
|
||||
user,
|
||||
mimeType: "text/markdown",
|
||||
fileName,
|
||||
content: "# Test content",
|
||||
content: "Test content without heading",
|
||||
ctx: createContext({ user, transaction }),
|
||||
})
|
||||
);
|
||||
@@ -411,7 +411,7 @@ describe("documentImporter", () => {
|
||||
user,
|
||||
mimeType: "text/markdown",
|
||||
fileName,
|
||||
content: "# Test content",
|
||||
content: "Test content without heading",
|
||||
ctx: createContext({ user, transaction }),
|
||||
})
|
||||
);
|
||||
@@ -434,7 +434,7 @@ describe("documentImporter", () => {
|
||||
user,
|
||||
mimeType: "text/markdown",
|
||||
fileName,
|
||||
content: "# Test content",
|
||||
content: "Test content without heading",
|
||||
ctx: createContext({ user, transaction }),
|
||||
})
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user