Created
September 4, 2019 13:27
-
-
Save ralfting/35dab6cd55b04fdced75a760a4e83470 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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