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