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({}); }); }); });