refactor: migrate legacy wire namespace to wrn
This commit is contained in:
@@ -270,7 +270,7 @@ test("sanitizeFilename strips traversal and separators", () => {
|
||||
});
|
||||
|
||||
test("saveUpload writes a validated file and enforces limits", async () => {
|
||||
const dir = join(tmpdir(), "wire-upload-test");
|
||||
const dir = join(tmpdir(), "wrn-upload-test");
|
||||
const file = new File(["hello upload"], "note.txt", { type: "text/plain" });
|
||||
|
||||
const saved = await saveUpload(file, { dir, allowedTypes: ["text/plain", ".txt"] });
|
||||
|
||||
Reference in New Issue
Block a user