Skip to content

Commit

Permalink
fix: Add settings to MdToADF Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andymac4182 committed May 1, 2023
1 parent 38706d1 commit 2c58c51
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/lib/src/MdToADF.test.ts
Expand Up @@ -2,6 +2,7 @@
import { expect, test } from "@jest/globals";
import { MarkdownFile } from "./adaptors";
import { MdToADF } from "./MdToADF";
import { ConfluenceSettings } from "./Settings";

const markdownTestCases: MarkdownFile[] = [
{
Expand Down Expand Up @@ -199,6 +200,15 @@ const markdownTestCases: MarkdownFile[] = [
];
test.each(markdownTestCases)("parses $fileName", (markdown: MarkdownFile) => {
const mdToADF = new MdToADF();
const adfFile = mdToADF.convertMDtoADF(markdown);
const settings: ConfluenceSettings = {
confluenceBaseUrl: "",
confluenceParentId: "",
atlassianUserName: "",
atlassianApiToken: "",
folderToPublish: "",
contentRoot: "",
firstHeadingPageTitle: false,
};
const adfFile = mdToADF.convertMDtoADF(markdown, settings);
expect(adfFile).toMatchSnapshot();
});

0 comments on commit 2c58c51

Please sign in to comment.