Skip to content

Commit

Permalink
test: replace html => md
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Dec 13, 2022
1 parent d05dd43 commit 4258eed
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions testing/tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ test("content built foo page", () => {
expect(doc.flaws.macros[0].redirectInfo.current).toBe("dumber");
expect(doc.flaws.macros[0].redirectInfo.suggested).toBe("number");
expect(doc.flaws.macros[0].filepath).toMatch(
/\/en-us\/web\/fixable_flaws\/index\.html$/
/\/en-us\/web\/fixable_flaws\/index\.md$/
);
expect(doc.flaws.macros[1].name).toBe("MacroRedirectedLinkError");
expect(doc.flaws.macros[1].macroSource).toBe(
Expand All @@ -102,7 +102,7 @@ test("content built foo page", () => {
expect(doc.flaws.macros[1].redirectInfo.current).toBe("anchor");
expect(doc.flaws.macros[1].redirectInfo.suggested).toBe("a");
expect(doc.flaws.macros[1].filepath).toMatch(
/\/en-us\/web\/fixable_flaws\/index\.html$/
/\/en-us\/web\/fixable_flaws\/index\.md$/
);
expect(doc.flaws.macros[2].name).toBe("MacroBrokenLinkError");
expect(doc.flaws.macros[2].macroSource).toBe(
Expand All @@ -114,7 +114,7 @@ test("content built foo page", () => {
expect.stringContaining('<li>{{CSSxRef("will-never-be-fixable")}}</li>')
);
expect(doc.flaws.macros[2].filepath).toMatch(
/\/en-us\/web\/fixable_flaws\/index\.html$/
/\/en-us\/web\/fixable_flaws\/index\.md$/
);
expect(doc.flaws.macros[3].name).toBe("MacroRedirectedLinkError");
expect(doc.flaws.macros[3].macroSource).toBe("{{CSSxRef('dumber')}}");
Expand All @@ -127,7 +127,7 @@ test("content built foo page", () => {
expect(doc.flaws.macros[3].redirectInfo.current).toBe("dumber");
expect(doc.flaws.macros[3].redirectInfo.suggested).toBe("number");
expect(doc.flaws.macros[3].filepath).toMatch(
/\/en-us\/web\/fixable_flaws\/index\.html$/
/\/en-us\/web\/fixable_flaws\/index\.md$/
);
expect(doc.flaws.macros[4].name).toBe("MacroExecutionError");
expect(doc.flaws.macros[4].errorStack).toEqual(
Expand All @@ -142,7 +142,7 @@ test("content built foo page", () => {
expect.stringContaining('<div>{{page("does-not-exist")}}</div>')
);
expect(doc.flaws.macros[4].filepath).toMatch(
/\/en-us\/web\/fubar\/index\.html$/
/\/en-us\/web\/fubar\/index\.md$/
);
expect(doc.flaws.macros[5].name).toBe("MacroExecutionError");
expect(doc.flaws.macros[5].errorStack).toEqual(
Expand All @@ -159,7 +159,7 @@ test("content built foo page", () => {
)
);
expect(doc.flaws.macros[5].filepath).toMatch(
/\/en-us\/web\/fubar\/index\.html$/
/\/en-us\/web\/fubar\/index\.md$/
);

const htmlFile = path.join(builtFolder, "index.html");
Expand Down

0 comments on commit 4258eed

Please sign in to comment.