test: refactor existing tests to vitest

This commit is contained in:
William Will
2023-03-30 02:46:25 -06:00
parent e4725c23eb
commit 58bb403787
9 changed files with 367 additions and 392 deletions

5
test/tools/isSameCode.ts Normal file

@ -0,0 +1,5 @@
export function isSameCode(code1: string, code2: string): boolean {
const removeSpacesAndNewLines = (code: string) => code.replace(/\s/g, "").replace(/\n/g, "");
return removeSpacesAndNewLines(code1) === removeSpacesAndNewLines(code2);
}