| | |
| | | Object.defineProperty(exports, '__esModule', { |
| | | value: true |
| | | }); |
| | | exports.default = void 0; |
| | | exports.default = array; |
| | | |
| | | function util() { |
| | | const data = _interopRequireWildcard(require('util')); |
| | |
| | | const ESCAPED_PLACEHOLDER_PREFIX = /%%/g; |
| | | const JEST_EACH_PLACEHOLDER_ESCAPE = '@@__JEST_EACH_PLACEHOLDER_ESCAPE__@@'; |
| | | |
| | | var _default = (title, arrayTable) => { |
| | | function array(title, arrayTable) { |
| | | if (isTemplates(title, arrayTable)) { |
| | | return arrayTable.map((template, index) => ({ |
| | | arguments: [template], |
| | |
| | | arguments: row, |
| | | title: formatTitle(title, row, index) |
| | | })); |
| | | }; |
| | | |
| | | exports.default = _default; |
| | | } |
| | | |
| | | const isTemplates = (title, arrayTable) => |
| | | !SUPPORTED_PLACEHOLDERS.test(interpolateEscapedPlaceholders(title)) && |