@@ -35,7 +35,9 @@ describe("oasDiffChangelog", () => {
3535 const result = await oasDiff . oasDiffChangelog ( baseApi , newApi , flags ) ;
3636
3737 expect ( execSyncStub . called ) . to . be . true ;
38- expect ( execSyncStub . args [ 1 ] [ 0 ] ) . to . equal ( 'oasdiff changelog "base.yaml" "new.yaml"' ) ;
38+ expect ( execSyncStub . args [ 1 ] [ 0 ] ) . to . equal (
39+ 'oasdiff changelog "base.yaml" "new.yaml"'
40+ ) ;
3941 expect ( result ) . to . equal ( 0 ) ;
4042 } ) ;
4143
@@ -122,7 +124,7 @@ describe("oasDiffChangelog", () => {
122124 it ( "should run oasdiff in directory mode when the --dir flag is provided" , async ( ) => {
123125 const execSyncStub = sinon . stub ( ) ;
124126 execSyncStub . onCall ( 0 ) . returns ( "version 1.0.0" ) ;
125- execSyncStub . onCall ( 1 ) . returns ( "a change" ) ;
127+ execSyncStub . onCall ( 1 ) . returns ( "a minor change" ) ;
126128
127129 const fsStub = {
128130 readdir : sinon . stub ( ) . returns ( [ "api-v1" ] ) ,
@@ -172,6 +174,7 @@ describe("oasDiffChangelog", () => {
172174 const newApi = "new" ;
173175 const flags = {
174176 "out-file" : "output.txt" ,
177+ dir : true ,
175178 } ;
176179
177180 await oasDiff . oasDiffChangelog ( baseApi , newApi , flags ) ;
@@ -208,6 +211,7 @@ describe("oasDiffChangelog", () => {
208211 const flags = {
209212 "out-file" : "output.json" ,
210213 format : "json" ,
214+ dir : true ,
211215 } ;
212216
213217 await oasDiff . oasDiffChangelog ( baseApi , newApi , flags ) ;
0 commit comments