mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2026-07-04 22:45:31 +00:00
15 lines
390 B
TypeScript
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({});
|
|
});
|
|
});
|
|
});
|