File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,9 @@ describe("OpenAPIGenerator", () => {
237237 it ( "should throw an error when writing a file fails" , function ( ) {
238238 const errStub = sinon . stub ( logOutput . log , "error" ) . returns ( "" ) ;
239239 const succSpy = sinon . spy ( logOutput . log , "success" ) ;
240- const fsStub = sinon . stub ( fs , "writeFileSync" ) . throws ( new Error ( ) ) ;
240+ const fsStub = sinon
241+ . stub ( fs , "writeFileSync" )
242+ . throws ( new Error ( "throwing an error from writeFileSync" ) ) ;
241243 const openAPIGenerator = new OpenAPIGenerator ( sls , { } , logOutput ) ;
242244 openAPIGenerator . processCliInput ( ) ;
243245
@@ -258,7 +260,7 @@ describe("OpenAPIGenerator", () => {
258260 const errStub = sinon . spy ( logOutput . log , "error" ) ;
259261 const succSpy = sinon . spy ( logOutput . log , "success" ) ;
260262 const pgStub = sinon . stub ( PostmanGenerator , "convert" ) ;
261- pgStub . yields ( new Error ( ) ) ;
263+ pgStub . yields ( new Error ( "throwing an error from PostmanGenerator" ) ) ;
262264
263265 const openAPIGenerator = new OpenAPIGenerator ( sls , { } , logOutput ) ;
264266 openAPIGenerator . processCliInput ( ) ;
You can’t perform that action at this time.
0 commit comments