Skip to content

Commit

Permalink
Add items to an array to remove duplicates.
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenDufresne committed Aug 10, 2021
1 parent b9bb3cb commit 86a8429
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actions/ui-check/tests/reporters/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const WARNING_DOCS_URL =
const getTemplate = ( key, obj ) => `Test Name: ${ obj.title }
Details:
${ obj.details.join( '\n' ) }
${ Object.keys( obj.details ).join( '\n' ) }
Help:
${ getDocInformation( obj.severity, key ) }
Expand Down Expand Up @@ -65,7 +65,7 @@ class MyCustomReporter {
this.errors[ id ] = {};
this.errors[ id ].title = result.title;
this.errors[ id ].pages = [];
this.errors[ id ].details = [];
this.errors[ id ].details = {};
this.errors[ id ].severity = '';
}

Expand All @@ -89,7 +89,7 @@ class MyCustomReporter {
);

this.errors[ id ].severity = typeMatches[ 1 ];
this.errors[ id ].details.push( matches[ 1 ].trim() );
this.errors[ id ].details[ matches[ 1 ].trim() ] = true;
}
}
}
Expand Down

0 comments on commit 86a8429

Please sign in to comment.