import { setCookie, getCookie, deleteCookie, clearCookie } from "./index";

test("add cookie { name: 111, age: 222 }", () => {
  expect(setCookie({ name: "111", age: 222 })).toBe("name=111; age=222");
});

test("get cookie name", () => {
  expect(getCookie("name")).toBe("111");
});

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

test("clear cookie", () => {
  expect(clearCookie()).toBe(true);
});
