Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should remove the child', () => {
expect(
onChildRemoved([val1, val2, val3], val2, toKey)
).toEqual([val1, val3]);
});
});