Made tests use isBuildStatus validator from build-status.js (#2762)
This commit is contained in:
@@ -91,31 +91,6 @@ const isDependencyState = withRegex(
|
||||
/^(\d+ out of date|\d+ deprecated|up to date)$/
|
||||
)
|
||||
|
||||
const isBuildStatus = Joi.equal(
|
||||
'building',
|
||||
'cancelled',
|
||||
'error',
|
||||
'expired',
|
||||
'failed',
|
||||
'failing',
|
||||
'no tests',
|
||||
'not built',
|
||||
'not run',
|
||||
'passed',
|
||||
'passing',
|
||||
'pending',
|
||||
'processing',
|
||||
'queued',
|
||||
'running',
|
||||
'scheduled',
|
||||
'skipped',
|
||||
'stopped',
|
||||
'success',
|
||||
'timeout',
|
||||
'unstable',
|
||||
'waiting'
|
||||
)
|
||||
|
||||
module.exports = {
|
||||
isSemver,
|
||||
isVPlusTripleDottedVersion,
|
||||
@@ -135,6 +110,5 @@ module.exports = {
|
||||
isFormattedDate,
|
||||
isRelativeFormattedDate,
|
||||
isDependencyState,
|
||||
isBuildStatus,
|
||||
withRegex,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user