Skip to content

Commit 1acb985

Browse files
committed
chore: integrationテストのフィクスチャ読み込み修正
1 parent a406bd6 commit 1acb985

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

tests/integration/fixture-parser.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ const EXCLUDED_FIXTURES = new Set<string>([
2020
*/
2121
const SKIP_AST_COMPARISON = new Set<string>([
2222
"include/wikidot", // includeは外部ページ依存のためAST固定不可
23-
"table/nest", // インライン位置の[[table]]パースは未実装(issue参照)
24-
"table/advanced", // セル内テキストのparagraphラップ判定が未実装(issue参照)
25-
"tabview/basic", // expected.jsonがoutput.htmlと不整合(issue参照)
23+
// "table/nest", // インライン位置の[[table]]パースは未実装(issue参照)
24+
// "table/advanced", // セル内テキストのparagraphラップ判定が未実装(issue参照)
25+
// "tabview/basic", // expected.jsonがoutput.htmlと不整合(issue参照)
2626
]);
2727

2828
/**

tests/integration/fixture-render.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const EXCLUDED_FIXTURES = new Set<string>([
1818
"module/listusers/basic", // ListUsersは動的コンテンツ
1919
"module/listusers/fail", // 同上
2020
"module/pagetree", // PageTreeは動的コンテンツ(resolver未実装)
21-
"table/fail-paragraph", // リンク解釈・段落内改行処理の問題(別issueで対応)
21+
// "table/fail-paragraph", // リンク解釈・段落内改行処理の問題(別issueで対応)
2222
// "expr/edge-cases", // エラーメッセージがWikidotと異なる(スタックベース vs 再帰下降)
2323
"misc/bibliography", // bibliography機能(bibcite/bibitems)が未実装
2424
]);
@@ -141,7 +141,9 @@ describe("Render Fixture Tests", () => {
141141
const syntaxTree: SyntaxTree = JSON.parse(expectedJson);
142142
const expectedHtml = fs.readFileSync(testCase.outputPath!, "utf-8");
143143

144-
const rendered = renderToHtml(syntaxTree);
144+
const rendered = renderToHtml(syntaxTree, {
145+
page: { pageName: "some-page" },
146+
});
145147
expect(normalizeHtml(rendered)).toBe(normalizeHtml(expectedHtml));
146148
});
147149
}

0 commit comments

Comments
 (0)