diff --git a/actions/ui-check/tests/reporters/index.js b/actions/ui-check/tests/reporters/index.js index 631d8b4..e42521d 100644 --- a/actions/ui-check/tests/reporters/index.js +++ b/actions/ui-check/tests/reporters/index.js @@ -15,7 +15,11 @@ const WARNING_DOCS_URL = const getTemplate = ( key, obj ) => `Test Name: ${ obj.title } Details: -${ Object.keys( obj.details ).join( '\n' ) } +${ + Object.keys( obj.details ).length > 0 + ? Object.keys( obj.details ).join( '\n' ) + : 'None provided.' +} Help: ${ getDocInformation( obj.severity, key ) }