Skip to content

Commit

Permalink
chore: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Oct 18, 2024
1 parent 517d89b commit 9d139f2
Show file tree
Hide file tree
Showing 6 changed files with 269 additions and 112 deletions.
49 changes: 45 additions & 4 deletions tests/e2e/__snapshots__/include-toc.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Include toc Nested toc inclusions with mixed including modes 1`] = `"["product1/_includes/inc.md","product1/article1.md","product1/toc.yaml","product2/overlay1/_includes/inc.md","product2/overlay1/article1.md","product2/overlay2/_includes/inc.md","product2/overlay2/article1.md","product2/overlay3/_includes/inc.md","product2/overlay3/article1.md","product2/p2.md","product2/toc.yaml"]"`;
exports[`Include toc Nested toc inclusions with mixed including modes 1`] = `
"[
"product1/_includes/inc.md",
"product1/article1.md",
"product1/toc.yaml",
"product2/overlay1/_includes/inc.md",
"product2/overlay1/article1.md",
"product2/overlay2/_includes/inc.md",
"product2/overlay2/article1.md",
"product2/overlay3/_includes/inc.md",
"product2/overlay3/article1.md",
"product2/p2.md",
"product2/toc.yaml"
]"
`;

exports[`Include toc Nested toc inclusions with mixed including modes 2`] = `
"---
Expand Down Expand Up @@ -112,7 +126,14 @@ deepBase: 1
"
`;

exports[`Include toc Toc is included in link mode 1`] = `"["a1.md","folder1/a1.md","folder1/folder2/a1.md","toc.yaml"]"`;
exports[`Include toc Toc is included in link mode 1`] = `
"[
"a1.md",
"folder1/a1.md",
"folder1/folder2/a1.md",
"toc.yaml"
]"
`;

exports[`Include toc Toc is included in link mode 2`] = `
"This is the /a1.md file content.
Expand Down Expand Up @@ -146,7 +167,21 @@ deepBase: 0
"
`;

exports[`Include toc Toc is included inline, not as a new section 1`] = `"[".yfm","file1.md","fileA.md","fileB.md","fileC.md","fileX.md","folder/fileA.md","folder/fileB.md","folder/fileC.md","folder/folder/fileC.md","toc.yaml"]"`;
exports[`Include toc Toc is included inline, not as a new section 1`] = `
"[
".yfm",
"file1.md",
"fileA.md",
"fileB.md",
"fileC.md",
"fileX.md",
"folder/fileA.md",
"folder/fileB.md",
"folder/fileC.md",
"folder/folder/fileC.md",
"toc.yaml"
]"
`;

exports[`Include toc Toc is included inline, not as a new section 2`] = `
"applyPresets: true
Expand Down Expand Up @@ -261,7 +296,13 @@ deepBase: 0
"
`;

exports[`Include toc Toc with expressions 1`] = `"["a1.md","index.yaml","toc.yaml"]"`;
exports[`Include toc Toc with expressions 1`] = `
"[
"a1.md",
"index.yaml",
"toc.yaml"
]"
`;

exports[`Include toc Toc with expressions 2`] = `
"This is the /a1.md file content.
Expand Down
Loading

0 comments on commit 9d139f2

Please sign in to comment.