@@ -83,38 +83,38 @@ describe("errors", () => {
8383 const assertProcessExited = ( ) => {
8484 assert . isTrue (
8585 isProcessExitCalled ,
86- "When the action fails, process.exit must be called."
86+ "When the action fails, process.exit must be called." ,
8787 ) ;
8888 assert . equal (
8989 processExitCode ,
9090 127 ,
91- "When the action fails, process.exit must be called with 127 by default."
91+ "When the action fails, process.exit must be called with 127 by default." ,
9292 ) ;
9393 } ;
9494
9595 const assertPrintCommandHelpSuggestionIsNotCalled = ( ) => {
9696 assert . isFalse (
9797 isPrintCommandHelpSuggestionExecuted ,
98- "printCommandHelpSuggestion should not be called when the suggestCommandHelp is not set to the exception."
98+ "printCommandHelpSuggestion should not be called when the suggestCommandHelp is not set to the exception." ,
9999 ) ;
100100 } ;
101101
102102 it ( "executes the passed action and does not print anything when it is successful" , async ( ) => {
103103 const { action, printCommandHelpSuggestion } = setupTest ( ) ;
104104 let result = await errors . beginCommand (
105105 action ,
106- printCommandHelpSuggestion
106+ printCommandHelpSuggestion ,
107107 ) ;
108108 assert . isTrue (
109109 result ,
110- "beginCommand must return the result of the passed action."
110+ "beginCommand must return the result of the passed action." ,
111111 ) ;
112112
113113 actionResult = false ;
114114 result = await errors . beginCommand ( action , printCommandHelpSuggestion ) ;
115115 assert . isFalse (
116116 result ,
117- "beginCommand must return the result of the passed action."
117+ "beginCommand must return the result of the passed action." ,
118118 ) ;
119119 assert . equal ( logger . errorOutput , "" ) ;
120120 assert . equal ( logger . output , "" ) ;
@@ -136,15 +136,15 @@ describe("errors", () => {
136136 const assertCallStack = ( ) => {
137137 assert . isTrue (
138138 logger . errorOutput . indexOf ( errMsg ) !== - 1 ,
139- "The error output must contain the error message"
139+ "The error output must contain the error message" ,
140140 ) ;
141141 assert . isTrue (
142- logger . errorOutput . indexOf ( "at Generator. next" ) !== - 1 ,
143- "The error output must contain callstack"
142+ logger . errorOutput . indexOf ( "at next" ) !== - 1 ,
143+ "The error output must contain callstack" ,
144144 ) ;
145145 assert . isTrue (
146146 logger . errorOutput . indexOf ( path . join ( "lib" , "common" ) ) !== - 1 ,
147- "The error output must contain path to lib/common, as this is the location of the file"
147+ "The error output must contain path to lib/common, as this is the location of the file" ,
148148 ) ;
149149 } ;
150150
@@ -213,7 +213,7 @@ describe("errors", () => {
213213 assertProcessExited ( ) ;
214214 assert . isTrue (
215215 isPrintCommandHelpSuggestionExecuted ,
216- "printCommandHelpSuggestion should be called when the action fails with an error object for which suggestCommandHelp is true."
216+ "printCommandHelpSuggestion should be called when the action fails with an error object for which suggestCommandHelp is true." ,
217217 ) ;
218218 } ) ;
219219
@@ -225,12 +225,12 @@ describe("errors", () => {
225225 assert . equal ( logger . errorOutput , `${ errMsg } \n` ) ;
226226 assert . isTrue (
227227 isProcessExitCalled ,
228- "When the action fails, process.exit must be called."
228+ "When the action fails, process.exit must be called." ,
229229 ) ;
230230 assert . equal (
231231 processExitCode ,
232232 errObj . errorCode ,
233- `When the action fails, process.exit must be called with ${ errObj . errorCode } .`
233+ `When the action fails, process.exit must be called with ${ errObj . errorCode } .` ,
234234 ) ;
235235 } ) ;
236236
@@ -242,12 +242,12 @@ describe("errors", () => {
242242 assert . equal ( logger . errorOutput , `${ errMsg } \n` ) ;
243243 assert . isTrue (
244244 isProcessExitCalled ,
245- "When the action fails, process.exit must be called."
245+ "When the action fails, process.exit must be called." ,
246246 ) ;
247247 assert . equal (
248248 processExitCode ,
249249 127 ,
250- "When the action fails, process.exit must be called with 127 by default."
250+ "When the action fails, process.exit must be called with 127 by default." ,
251251 ) ;
252252 } ) ;
253253 } ) ;
0 commit comments