Skip to content

Commit

Permalink
Communicate when details are missing.
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenDufresne committed Aug 10, 2021
1 parent 86a8429 commit 8e07b73
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion actions/ui-check/tests/reporters/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) }
Expand Down

0 comments on commit 8e07b73

Please sign in to comment.