This commit is contained in:
2026-06-07 10:46:15 +02:00
parent bb422fdd8d
commit 781231e414
21 changed files with 443 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import { describe, expect, it } from "vitest";
import { upload } from "./actions";
import { deriveKey } from "./encryption";
describe("actions", () => {
describe("upload", () => {
it("upload", async () => {
const key = deriveKey("abc");
await expect(
upload({ public: "foo", metadata: { views: 1 }, files: [] }, key),
).resolves.toBe({});
});
});
});