UNPKG

@omni-door/tpl-component-library-react

Version:
8 lines (7 loc) 629 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function default_1(config) { var componentName = config.componentName; return "import * as React from 'react';\nimport { configure, shallow, render, mount } from 'enzyme';\nimport Adapter from 'enzyme-adapter-react-16';\nimport " + componentName + " from '../index';\n\nconfigure({ adapter: new Adapter() });\n\ndescribe('" + componentName + "', () => {\n it('renders correctly', () => {\n const wrapper = render(\n <" + componentName + " />\n );\n expect(wrapper).toMatchSnapshot();\n });\n});"; } exports.default = default_1;