@@ -70,7 +70,7 @@ describe("error-handler", () => {
70
70
`${ chalk . red . bold ( `Error ${ error . errorCode } :` ) } ${ error . formattedMessage } ` ,
71
71
) ;
72
72
assert . equal ( lines [ 1 ] , "" ) ;
73
- assert . equal ( lines [ 2 ] , error . stack ) ;
73
+ assert . equal ( lines [ 2 ] , ` ${ error . stack } ` ) ;
74
74
} ) ;
75
75
76
76
it ( "should print the stack trace when the stack is enabled via --show-stack-traces" , ( ) => {
@@ -90,7 +90,7 @@ describe("error-handler", () => {
90
90
`${ chalk . red . bold ( `Error ${ error . errorCode } :` ) } ${ error . formattedMessage } ` ,
91
91
) ;
92
92
assert . equal ( lines [ 1 ] , "" ) ;
93
- assert . equal ( lines [ 2 ] , error . stack ) ;
93
+ assert . equal ( lines [ 2 ] , ` ${ error . stack } ` ) ;
94
94
} finally {
95
95
process . argv . pop ( ) ;
96
96
}
@@ -142,7 +142,7 @@ describe("error-handler", () => {
142
142
`${ chalk . red . bold ( `Error ${ error . errorCode } in plugin ${ error . pluginId } :` ) } ${ error . formattedMessage } ` ,
143
143
) ;
144
144
assert . equal ( lines [ 1 ] , "" ) ;
145
- assert . equal ( lines [ 2 ] , error . stack ) ;
145
+ assert . equal ( lines [ 2 ] , ` ${ error . stack } ` ) ;
146
146
} ) ;
147
147
148
148
it ( "should print the stack trace when the stack is enabled via --show-stack-traces" , ( ) => {
@@ -165,7 +165,7 @@ describe("error-handler", () => {
165
165
`${ chalk . red . bold ( `Error ${ error . errorCode } in plugin ${ error . pluginId } :` ) } ${ error . formattedMessage } ` ,
166
166
) ;
167
167
assert . equal ( lines [ 1 ] , "" ) ;
168
- assert . equal ( lines [ 2 ] , error . stack ) ;
168
+ assert . equal ( lines [ 2 ] , ` ${ error . stack } ` ) ;
169
169
} finally {
170
170
process . argv . pop ( ) ;
171
171
}
@@ -217,7 +217,7 @@ describe("error-handler", () => {
217
217
`${ chalk . red . bold ( `Error in community plugin ${ error . pluginId } :` ) } ${ error . message } ` ,
218
218
) ;
219
219
assert . equal ( lines [ 1 ] , "" ) ;
220
- assert . equal ( lines [ 2 ] , error . stack ) ;
220
+ assert . equal ( lines [ 2 ] , ` ${ error . stack } ` ) ;
221
221
} ) ;
222
222
223
223
it ( "should print the stack trace when the stack is enabled via --show-stack-traces" , ( ) => {
@@ -240,7 +240,7 @@ describe("error-handler", () => {
240
240
`${ chalk . red . bold ( `Error in community plugin ${ error . pluginId } :` ) } ${ error . message } ` ,
241
241
) ;
242
242
assert . equal ( lines [ 1 ] , "" ) ;
243
- assert . equal ( lines [ 2 ] , error . stack ) ;
243
+ assert . equal ( lines [ 2 ] , ` ${ error . stack } ` ) ;
244
244
} finally {
245
245
process . argv . pop ( ) ;
246
246
}
@@ -259,7 +259,7 @@ describe("error-handler", () => {
259
259
assert . equal ( lines . length , 5 ) ;
260
260
assert . equal ( lines [ 0 ] , chalk . red . bold ( `An unexpected error occurred:` ) ) ;
261
261
assert . equal ( lines [ 1 ] , "" ) ;
262
- assert . equal ( lines [ 2 ] , error . stack ) ;
262
+ assert . equal ( lines [ 2 ] , ` ${ error . stack } ` ) ;
263
263
assert . equal ( lines [ 3 ] , "" ) ;
264
264
assert . equal (
265
265
lines [ 4 ] ,
@@ -278,7 +278,7 @@ describe("error-handler", () => {
278
278
assert . equal ( lines . length , 5 ) ;
279
279
assert . equal ( lines [ 0 ] , chalk . red . bold ( `An unexpected error occurred:` ) ) ;
280
280
assert . equal ( lines [ 1 ] , "" ) ;
281
- assert . equal ( lines [ 2 ] , error ) ;
281
+ assert . equal ( lines [ 2 ] , ` ${ error } ` ) ;
282
282
assert . equal ( lines [ 3 ] , "" ) ;
283
283
assert . equal (
284
284
lines [ 4 ] ,
0 commit comments