style(media): format zip test
This commit is contained in:
parent
7c744b98a0
commit
4876c58fca
@ -82,9 +82,9 @@ describe("writeStoreZip", () => {
|
||||
`${"a".repeat(101)}`,
|
||||
]) {
|
||||
expect(isSafeZipEntryName(name), name).toBe(false);
|
||||
await expect(writeStoreZip(path.join(dir, "out.zip"), [{ name, path: file }])).rejects.toThrow(
|
||||
/unsafe zip entry/,
|
||||
);
|
||||
await expect(
|
||||
writeStoreZip(path.join(dir, "out.zip"), [{ name, path: file }]),
|
||||
).rejects.toThrow(/unsafe zip entry/);
|
||||
}
|
||||
expect(isSafeZipEntryName("thumb-a.png")).toBe(true);
|
||||
expect(isSafeZipEntryName("UPLOAD-CHECKLIST.md")).toBe(true);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user