Files
cryptgeon/packages/shared/src/actions.test.ts
T
2026-06-07 10:46:15 +02:00

15 lines
390 B
TypeScript

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