wix-storybook-utils
Version:
Utilities for automated component documentation within Storybook
31 lines • 1.13 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var react_1 = tslib_1.__importDefault(require("react"));
var react_2 = require("@storybook/react");
var __1 = require("..");
var tests = [
{
it: "should render components list",
props: {
includedComponents: [
{ category: 'Category', title: 'FirstComponent' },
{ category: 'Category', title: 'SecondComponent' },
],
},
},
{
it: "should render optional components list",
props: {
includedComponents: [
{ category: 'Category', title: 'FirstComponent', optional: true },
{ category: 'Category', title: 'SecondComponent', optional: true },
],
},
},
];
tests.forEach(function (_a) {
var it = _a.it, props = _a.props;
(0, react_2.storiesOf)('IncludedComponents', module).add(it, function () { return react_1.default.createElement(__1.IncludedComponents, tslib_1.__assign({}, props)); });
});
//# sourceMappingURL=IncludedComponents.visual.js.map