mirror of
https://github.com/badges/shields.git
synced 2025-04-18 19:44:04 +03:00
[Hexpm] Fix badges for pre-release only versions (#10112)
* test: make existing test fail * fix: allow null values for latest_stable_version
This commit is contained in:
parent
d6dde3f135
commit
edae807362
@ -14,7 +14,7 @@ const hexSchema = Joi.object({
|
||||
meta: Joi.object({
|
||||
licenses: Joi.array().required(),
|
||||
}).required(),
|
||||
latest_stable_version: Joi.string(),
|
||||
latest_stable_version: Joi.string().allow(null),
|
||||
latest_version: Joi.string().required(),
|
||||
}).required()
|
||||
|
||||
|
@ -50,6 +50,7 @@ t.create('version (no stable version)')
|
||||
.get('/api/packages/prima_opentelemetry_ex')
|
||||
.reply(200, {
|
||||
downloads: { all: 100 },
|
||||
latest_stable_version: null,
|
||||
latest_version: '1.0.0-rc.3',
|
||||
meta: { licenses: ['MIT'] },
|
||||
}),
|
||||
|
Loading…
x
Reference in New Issue
Block a user