mirror of
https://github.com/luxfhe/example-dapps.git
synced 2026-10-30 18:13:32 +00:00
14 lines
414 B
TypeScript
14 lines
414 B
TypeScript
import { describe, it, expect } from "vitest";
|
|
import { GenericStringInMemoryStorage } from "../src/storage/GenericStringStorage";
|
|
|
|
describe("GenericStringInMemoryStorage", () => {
|
|
it("sets/gets/removes values", async () => {
|
|
const s = new GenericStringInMemoryStorage();
|
|
s.setItem("k", "v");
|
|
expect(s.getItem("k")).toBe("v");
|
|
s.removeItem("k");
|
|
expect(s.getItem("k")).toBe(null);
|
|
});
|
|
});
|
|
|