Skip to content

Instantly share code, notes, and snippets.

@ralfting
Created September 4, 2019 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ralfting/35dab6cd55b04fdced75a760a4e83470 to your computer and use it in GitHub Desktop.
Save ralfting/35dab6cd55b04fdced75a760a4e83470 to your computer and use it in GitHub Desktop.
import React from 'react';
import { render } from '@testing-library/react'
import withClickOutsideText from '../withClickOutsideText';
describe('withClickOutisdeText', () => {
it('create a wrapper component', () => {
const MockInput = () => withClickOutsideText(<input />);
const { getByTestId, debug } = render(MockInput);
expect(getByTestId('edit-field-wrapper')).toBeTruthy();
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment