We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7943d5 commit ac4e311Copy full SHA for ac4e311
tests/helpers/parsers.js
@@ -82,26 +82,12 @@ const parsers = {
82
errors: testObject.errors.map(
83
(errorObject) => {
84
const nextSuggestions = errorObject.suggestions && {
85
- suggestions: errorObject.suggestions.map(
86
- (suggestion) => {
87
- const nextSuggestion = Object.assign(
88
- {},
89
- suggestion,
90
- { output: suggestion.output + extraComment }
91
- );
92
-
93
- return nextSuggestion;
94
- }
95
- ),
+ suggestions: errorObject.suggestions.map((suggestion) => Object.assign({}, suggestion, {
+ output: suggestion.output + extraComment,
+ })),
96
};
97
98
- const nextErrorObject = Object.assign(
99
100
- errorObject,
101
- nextSuggestions
102
103
104
- return nextErrorObject;
+ return Object.assign({}, errorObject, nextSuggestions);
105
}
106
),
107
0 commit comments