We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 055382b commit bb89f3eCopy full SHA for bb89f3e
1 file changed
tests/md2html/md2html.test.js
@@ -2,6 +2,7 @@ import { readdirSync, readFileSync } from "node:fs";
2
import { exec } from "node:child_process";
3
import { resolve } from "node:path";
4
import { describe, test, expect } from "vitest";
5
+import assert from "node:assert";
6
7
const folder = "./tests/md2html/fixtures/";
8
describe("v3.0 - Validate examples", async () => {
@@ -12,9 +13,9 @@ describe("v3.0 - Validate examples", async () => {
12
13
const expected = readFileSync(
14
folder + entry.name.replace(".md", ".html"),
15
"utf8",
- ).split(/\r\n|\n/).join("\n");
16
+ ).split(/\r\n|\n/);
17
const output = await md2html([entry.name], folder);
- expect(output.stdout).to.equal(expected);
18
+ assert.deepStrictEqual(output.stdout.split("\n"), expected);
19
});
20
21
0 commit comments