mirror of
https://github.com/badges/shields.git
synced 2025-12-01 18:37:54 +03:00
Handle missing Symfony Insight grade gracefully (#3933)
This commit is contained in:
@@ -38,6 +38,7 @@ const bronzeMockResponse = createMockResponse({
|
||||
const noMedalMockResponse = createMockResponse({
|
||||
grade: 'none',
|
||||
})
|
||||
const noGradeMockResponse = createMockResponse({})
|
||||
const criticalViolation = createMockResponse({
|
||||
violations: [
|
||||
{
|
||||
@@ -106,6 +107,7 @@ module.exports = {
|
||||
silverMockResponse,
|
||||
bronzeMockResponse,
|
||||
noMedalMockResponse,
|
||||
noGradeMockResponse,
|
||||
criticalViolation,
|
||||
majorViolation,
|
||||
minorViolation,
|
||||
|
||||
Reference in New Issue
Block a user