From 8e07b731ba847c70686dec6a226af5b1f2ffbba2 Mon Sep 17 00:00:00 2001 From: dufresnesteven Date: Tue, 10 Aug 2021 09:54:10 +0900 Subject: [PATCH] Communicate when details are missing. --- actions/ui-check/tests/reporters/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ) }