Skip to content

Instantly share code, notes, and snippets.

@mikecx
Created July 31, 2020 05:27
Show Gist options
  • Save mikecx/00f98a7f902b0c1a7e00cd8c9eb58712 to your computer and use it in GitHub Desktop.
Save mikecx/00f98a7f902b0c1a7e00cd8c9eb58712 to your computer and use it in GitHub Desktop.
import { React, shallow } from 'testHelper';
const sharedSpecs = (component, props) => {
let wrapper;
beforeEach(() => {
const Component = component;
wrapper = shallow(<Component {...{ ...props }} />);
});
describe('Generic Behaviors', () => {
test('should exist', () => {
expect(wrapper).toBeDefined();
});
});
};
module.exports = sharedSpecs;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment