UNPKG

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

Version:
9 lines (8 loc) 670 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var utils_1 = require("@omni-door/utils"); var tpl = "`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});\n`"; exports.tpl_new_test = { tpl: tpl }; exports.default = utils_1.tpl_engine_new(exports.tpl_new_test, 'tpl');