import {
  setSessionStorage,
  getSessionStorage,
  deleteSessionStorage,
  clearSessionStorage,
} from "./index";

test("add name", () => {
  setSessionStorage({ name: "aaaa" });
  expect(getSessionStorage("name")).toBe("aaaa");
});

test("delete name", () => {
  expect(deleteSessionStorage("name")).toBe(true);
});

test("clear sessionStorage", () => {
  expect(clearSessionStorage()).toBe(true);
});
