mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
13 lines
408 B
JavaScript
13 lines
408 B
JavaScript
// @ts-check
|
|
|
|
import fs from "node:fs/promises";
|
|
import test from "ava";
|
|
import { newLineRe } from "../helpers/helpers.js";
|
|
import { parse } from "../helpers/micromark.cjs";
|
|
|
|
test("parse", async(t) => {
|
|
t.plan(1);
|
|
const content = await fs.readFile("./test/every-markdown-syntax.md", "utf8");
|
|
const document = parse(content.split(newLineRe).join("\n"));
|
|
t.snapshot(document, "Unexpected tokens");
|
|
});
|