Skip to content

Commit e836ad7

Browse files
committed
Fix
1 parent ecd1982 commit e836ad7

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

web/src/test/util.test.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,20 @@
11
import { expect, test } from "vitest";
2-
import {splitMultiFilePatch} from "$lib/util";
2+
import { splitMultiFilePatch } from "$lib/util";
33
import * as path from "node:path";
44
import * as fs from "node:fs";
55

66
test("Yield 2 patches from a patch file with signature", () => {
7-
const patch = loadPatch('patch-with-signature.patch');
7+
const patch = loadPatch("patch-with-signature.patch");
88
expect(splitMultiFilePatch(patch).length).toBe(2);
99
});
1010

11-
1211
test("Yield 2 patches from a patch file without signature", () => {
13-
const patch = loadPatch('patch-without-signature.patch');
12+
const patch = loadPatch("patch-without-signature.patch");
1413
expect(splitMultiFilePatch(patch).length).toBe(2);
1514
});
1615

17-
1816
export function loadPatch(name: string): string {
1917
const filePath = path.resolve(__dirname, "patches", name);
2018

21-
return fs.readFileSync(
22-
filePath,
23-
'utf8'
24-
);
19+
return fs.readFileSync(filePath, "utf8");
2520
}

0 commit comments

Comments
 (0)