File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { readdirSync, readFileSync } from "node:fs";
22import { exec } from "node:child_process" ;
33import { resolve } from "node:path" ;
44import { describe , test , expect } from "vitest" ;
5+ import assert from "node:assert" ;
56
67const folder = "./tests/md2html/fixtures/" ;
78describe ( "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} ) ;
You can’t perform that action at this time.
0 commit comments