Skip to content

Commit bb89f3e

Browse files
committed
Try assert
1 parent 055382b commit bb89f3e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/md2html/md2html.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { readdirSync, readFileSync } from "node:fs";
22
import { exec } from "node:child_process";
33
import { resolve } from "node:path";
44
import { describe, test, expect } from "vitest";
5+
import assert from "node:assert";
56

67
const folder = "./tests/md2html/fixtures/";
78
describe("v3.0 - Validate examples", async () => {
@@ -12,9 +13,9 @@ describe("v3.0 - Validate examples", async () => {
1213
const expected = readFileSync(
1314
folder + entry.name.replace(".md", ".html"),
1415
"utf8",
15-
).split(/\r\n|\n/).join("\n");
16+
).split(/\r\n|\n/);
1617
const output = await md2html([entry.name], folder);
17-
expect(output.stdout).to.equal(expected);
18+
assert.deepStrictEqual(output.stdout.split("\n"), expected);
1819
});
1920
});
2021
});

0 commit comments

Comments
 (0)