generate-react-code
Version:
An automated React code generation tool for React web, React-Native, and/or Redux in the ducks modular pattern.
18 lines (13 loc) • 596 B
JavaScript
import React from 'react';
import { shallow } from 'enzyme';
import TEMPLATE_UPPER_CAMEL_CASE_NAMEView from '../TEMPLATE_KEBAB_CASE_NAME.view';
describe('TEMPLATE_UPPER_CAMEL_CASE_NAMEView - Unit Test', () => {
/*
Here you can mock out any view function props not needed for rendering
(i.e. state read/write functions passed in as props) so as to only test the view.
These mocks may be omitted if no function props need to be mocked.
*/
it('should render without crashing', () => {
shallow(<TEMPLATE_UPPER_CAMEL_CASE_NAMEView />);
});
});