jest-each
Advanced tools
Comparing version 28.0.0-alpha.5 to 28.0.0-alpha.6
@@ -79,3 +79,3 @@ 'use strict'; | ||
*/ | ||
const SUPPORTED_PLACEHOLDERS = /%[sdifjoOp]/g; | ||
const SUPPORTED_PLACEHOLDERS = /%[sdifjoOp#]/g; | ||
const PRETTY_PLACEHOLDER = '%p'; | ||
@@ -82,0 +82,0 @@ const INDEX_PLACEHOLDER = '%#'; |
@@ -40,3 +40,3 @@ 'use strict'; | ||
.reduce(replaceKeyPathWithValue(template), title) | ||
.replace('$#', '' + index); | ||
.replace('$#', `${index}`); | ||
@@ -43,0 +43,0 @@ exports.interpolateVariables = interpolateVariables; |
@@ -89,8 +89,6 @@ 'use strict'; | ||
throw new Error( | ||
'Not enough arguments supplied for given headings:\n' + | ||
EXPECTED_COLOR(headings.join(' | ')) + | ||
'\n\n' + | ||
'Received:\n' + | ||
RECEIVED_COLOR((0, _prettyFormat().format)(data)) + | ||
'\n\n' + | ||
`Not enough arguments supplied for given headings:\n${EXPECTED_COLOR( | ||
headings.join(' | ') | ||
)}\n\n` + | ||
`Received:\n${RECEIVED_COLOR((0, _prettyFormat().format)(data))}\n\n` + | ||
`Missing ${RECEIVED_COLOR(missingData.toString())} ${pluralize( | ||
@@ -123,7 +121,7 @@ 'argument', | ||
throw new Error( | ||
'Table headings do not conform to expected format:\n\n' + | ||
EXPECTED_COLOR('heading1 | headingN') + | ||
'\n\n' + | ||
'Received:\n\n' + | ||
RECEIVED_COLOR((0, _prettyFormat().format)(headings)) | ||
`Table headings do not conform to expected format:\n\n${EXPECTED_COLOR( | ||
'heading1 | headingN' | ||
)}\n\nReceived:\n\n${RECEIVED_COLOR( | ||
(0, _prettyFormat().format)(headings) | ||
)}` | ||
); | ||
@@ -130,0 +128,0 @@ } |
{ | ||
"name": "jest-each", | ||
"version": "28.0.0-alpha.5", | ||
"version": "28.0.0-alpha.6", | ||
"description": "Parameterised tests for Jest", | ||
@@ -28,7 +28,7 @@ "main": "./build/index.js", | ||
"dependencies": { | ||
"@jest/types": "^28.0.0-alpha.5", | ||
"@jest/types": "^28.0.0-alpha.6", | ||
"chalk": "^4.0.0", | ||
"jest-get-type": "^28.0.0-alpha.3", | ||
"jest-util": "^28.0.0-alpha.5", | ||
"pretty-format": "^28.0.0-alpha.5" | ||
"jest-util": "^28.0.0-alpha.6", | ||
"pretty-format": "^28.0.0-alpha.6" | ||
}, | ||
@@ -41,3 +41,3 @@ "engines": { | ||
}, | ||
"gitHead": "46fb19b2628bd87676c10730ba19592c30b05478" | ||
"gitHead": "6284ada4adb7008f5f8673b1a7b1c789d2e508fb" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38094
735
Updated@jest/types@^28.0.0-alpha.6
Updatedjest-util@^28.0.0-alpha.6