test: remove roadmap todos from parse_test.ts (task 0003)
Drop the scaffolded test.todo placeholders (and the describe blocks left empty by their removal), keeping only the six real parser tests. The behaviours they enumerated live in the core-parser spec and tasks 0004-0007, which write their tests fresh when implemented.
This commit is contained in:
@@ -35,9 +35,6 @@ describe("parser", () => {
|
||||
expect(result.frontmatter).toEqual({});
|
||||
expect(result.diagnostics).toEqual([]);
|
||||
});
|
||||
test.todo(
|
||||
"does not throw on malformed frontmatter: frontmatter is {}, body still parses, and an invalid-frontmatter diagnostic preserves the raw YAML",
|
||||
);
|
||||
});
|
||||
|
||||
describe("blocks", () => {
|
||||
@@ -88,74 +85,5 @@ describe("parser", () => {
|
||||
diagnostics: [],
|
||||
});
|
||||
});
|
||||
test.todo("parses an ordered list");
|
||||
test.todo("parses an unordered list");
|
||||
test.todo("models a list item as a container wrapping a paragraph, not a bare inline array");
|
||||
test.todo("parses a code block and does not annotate its content");
|
||||
test.todo("parses a thematic break");
|
||||
test.todo("parses a blockquote as a container block");
|
||||
test.todo("parses a callout (> [!note]) as an ordinary blockquote");
|
||||
});
|
||||
|
||||
describe("inline nodes", () => {
|
||||
test.todo("parses plain text");
|
||||
test.todo("parses emphasis");
|
||||
test.todo("parses strong");
|
||||
test.todo("parses a code span and does not annotate its content");
|
||||
test.todo("parses a link with href and inline content");
|
||||
test.todo("parses a wikilink");
|
||||
test.todo("parses a wikilink with an anchor");
|
||||
test.todo("parses a wikilink with a display alias");
|
||||
test.todo("parses a transclusion");
|
||||
test.todo("parses a transclusion with a display alias");
|
||||
});
|
||||
|
||||
describe("raw fallbacks", () => {
|
||||
test.todo(
|
||||
"preserves an unmodelled block (e.g. a GFM table) as a RawBlock with verbatim source",
|
||||
);
|
||||
test.todo(
|
||||
"preserves an unmodelled inline (e.g. strikethrough) as a RawInline with verbatim source",
|
||||
);
|
||||
});
|
||||
|
||||
describe("ingredient annotations", () => {
|
||||
test.todo("extracts ingredient name, quantity, and unit");
|
||||
test.todo("extracts multi-word ingredient name");
|
||||
test.todo("extracts ingredient with a unit-less quantity");
|
||||
test.todo("extracts ingredient with no quantity");
|
||||
});
|
||||
|
||||
describe("cookware annotations", () => {
|
||||
test.todo("extracts cookware with quantity and unit");
|
||||
test.todo("extracts cookware with no quantity");
|
||||
test.todo("extracts multi-word cookware name");
|
||||
});
|
||||
|
||||
describe("timer annotations", () => {
|
||||
test.todo("extracts timer as a single value");
|
||||
test.todo("extracts timer as a range");
|
||||
test.todo("normalises timer unit aliases to canonical form");
|
||||
test.todo("matches timer units case-insensitively (~5 Mins -> min)");
|
||||
});
|
||||
|
||||
describe("unit normalisation", () => {
|
||||
test.todo("normalises a known alias to canonical (grams -> g)");
|
||||
test.todo("matches unit aliases case-insensitively (Tbsp -> tbsp)");
|
||||
test.todo("normalises a multi-word alias (fluid ounces -> fl oz)");
|
||||
test.todo("passes an unknown unit through verbatim");
|
||||
});
|
||||
|
||||
describe("annotation scope", () => {
|
||||
test.todo("captures annotations embedded mid-sentence");
|
||||
test.todo("captures annotations inside a container (blockquote or list item)");
|
||||
test.todo("does not extract annotations inside a code span");
|
||||
test.todo("does not extract annotations inside a code block");
|
||||
});
|
||||
|
||||
describe("transclusion", () => {
|
||||
test.todo("passes a Step Reference anchor through as-is");
|
||||
});
|
||||
|
||||
test.todo("standard Markdown elements pass through without interference");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user