Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it("add", () => {
const obj = new Set(["a"]);
obj[Collection.add]("b");
expect([...obj]).toEqual(["a", "b"]);
});
it("delete", () => {
it("add", () => {
const obj = ["a"];
obj[Collection.add]("b");
expect(obj).toEqual(["a", "b"]);
});
it("delete", () => {