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 copy value label to clipboard when input gets focus', () => {
copyFn.mockReset();
const component = mount();
component.find('input').simulate('focus');
expect(copyFn).toHaveBeenCalledWith(value.label);
});
});