15 lines
453 B
TypeScript
15 lines
453 B
TypeScript
import { afterEach, describe, expect, it } from "vitest";
|
|
import { __setAttachmentStoreForTests, getAttachmentStore } from "./store";
|
|
|
|
describe("attachment store", () => {
|
|
afterEach(() => {
|
|
__setAttachmentStoreForTests(null);
|
|
});
|
|
|
|
it("creates the default web attachment store without runtime module resolution errors", async () => {
|
|
const store = await getAttachmentStore();
|
|
|
|
expect(store.storageType).toBe("web-indexeddb");
|
|
});
|
|
});
|