fix [githubpipenv] service tests (#10658)
* fix failing test 'Locked version of VCS dependency' replaced tested package which is missing with another example * Add regex validator for commit hash format * fix vcs dependency test to use pipenv's pypiserver
This commit is contained in:
@@ -55,6 +55,8 @@ const isPhpVersionReduction = withRegex(
|
||||
/^((>= \d+(\.\d+)?)|(\d+\.\d+(, \d+\.\d+)*)|(\d+\.\d+ - \d+\.\d+))(, HHVM)?$/,
|
||||
)
|
||||
|
||||
const isCommitHash = withRegex(/^[a-f0-9]{7,40}$/)
|
||||
|
||||
const isStarRating = withRegex(
|
||||
/^(?=.{5}$)(\u2605{0,5}[\u00BC\u00BD\u00BE]?\u2606{0,5})$/,
|
||||
)
|
||||
@@ -187,6 +189,7 @@ export {
|
||||
isVPlusDottedVersionNClausesWithOptionalSuffixAndEpoch,
|
||||
isComposerVersion,
|
||||
isPhpVersionReduction,
|
||||
isCommitHash,
|
||||
isStarRating,
|
||||
isMetric,
|
||||
isMetricAllowNegative,
|
||||
|
||||
Reference in New Issue
Block a user