kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Add simple test for FormActions
rodzic
dbe6a0c415
commit
b6ce38122d
|
@ -0,0 +1,12 @@
|
||||||
|
import React from 'react';
|
||||||
|
|
||||||
|
import { render, screen } from '../../../../jest/test-helpers';
|
||||||
|
import FormActions from '../form-actions';
|
||||||
|
|
||||||
|
describe('<FormActions />', () => {
|
||||||
|
it('renders successfully', () => {
|
||||||
|
render(<FormActions><div data-testid='child'>child</div></FormActions>);
|
||||||
|
|
||||||
|
expect(screen.getByTestId('child')).toBeInTheDocument();
|
||||||
|
});
|
||||||
|
});
|
Ładowanie…
Reference in New Issue