import _extends from "@babel/runtime/helpers/extends";
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/esm/Highlighter/test/Highlighter.visual.jsx",
  _this = this;
import React from 'react';
import { storiesOf } from '@storybook/react';
import Highlighter from '../Highlighter';
var defaultProps = {
  children: "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Architecto\n  consequuntur earum eius eum fugiat"
};
var tests = [{
  describe: 'Basic',
  its: [{
    it: 'should render'
  }]
}, {
  describe: 'emphasize',
  its: [{
    it: 'should render text emphasize',
    props: {
      match: 'ipsum',
      emphasize: 'text'
    }
  }, {
    it: 'should render background emphasize',
    props: {
      match: 'sum',
      emphasize: 'background'
    }
  }]
}];
tests.forEach(function (_ref) {
  var describe = _ref.describe,
    its = _ref.its;
  its.forEach(function (_ref2) {
    var it = _ref2.it,
      props = _ref2.props;
    storiesOf("Highlighter".concat(describe ? '/' + describe : ''), module).add(it, function () {
      return /*#__PURE__*/React.createElement("div", {
        __self: _this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 46,
          columnNumber: 9
        }
      }, /*#__PURE__*/React.createElement(Highlighter, _extends({}, defaultProps, props, {
        __self: _this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 47,
          columnNumber: 11
        }
      })));
    });
  });
});