mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
Normalize line endings to get micromark test passing on Windows.
This commit is contained in:
parent
366a498150
commit
7142bbd8ed
1 changed files with 2 additions and 1 deletions
|
|
@ -1,10 +1,11 @@
|
|||
import fs from "node:fs/promises";
|
||||
import test from "ava";
|
||||
import newLineRe from "../helpers/helpers.js";
|
||||
import { parse } from "../lib/micromark.mjs";
|
||||
|
||||
test("parse", async(t) => {
|
||||
t.plan(1);
|
||||
const content = await fs.readFile("./test/every-markdown-syntax.md", "utf8");
|
||||
const document = parse(content);
|
||||
const document = parse(content.split(newLineRe).join("\n"));
|
||||
t.snapshot(document, "Unexpected tokens");
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue