@@ -104,7 +104,7 @@ describe('ValidationService', () => {
104104 expect ( result . data ) . to . have . property ( 'status' ) ;
105105 expect ( result . data ) . to . have . property ( 'diagnostics' ) ;
106106 expect ( result . data ?. diagnostics ) . to . be . an ( 'array' ) ;
107-
107+
108108 // Should have diagnostics for missing required fields
109109 if ( result . data ?. diagnostics && result . data . diagnostics . length > 0 ) {
110110 expect ( result . data . diagnostics . some ( ( d : any ) => d . message ) ) . to . equal ( true ) ;
@@ -119,7 +119,7 @@ describe('ValidationService', () => {
119119 } ;
120120
121121 const result = await validationService . validateDocument ( specFile , options ) ;
122-
122+
123123 expect ( result . success ) . to . equal ( true ) ;
124124 if ( result . success ) {
125125 expect ( result . data ) . to . have . property ( 'diagnostics' ) ;
@@ -129,12 +129,12 @@ describe('ValidationService', () => {
129129
130130 it ( 'should handle different output formats' , async ( ) => {
131131 const specFile = new Specification ( validAsyncAPI ) ;
132- const formats = [ 'json' , 'junit' , 'html' , 'text' , 'teamcity' , 'pretty' ] as const ;
132+ const formats = [ 'json' , 'junit' , 'html' , 'text' , 'teamcity' , 'pretty' , 'github-actions' , 'sarif' , 'code-climate' , 'gitlab' , 'markdown' ] as const ;
133133
134134 for ( const format of formats ) {
135135 const options = { 'diagnostics-format' : format } ;
136136 const result = await validationService . validateDocument ( specFile , options ) ;
137-
137+
138138 expect ( result . success ) . to . equal ( true ) ;
139139 if ( result . success ) {
140140 expect ( result . data ) . to . have . property ( 'diagnostics' ) ;
@@ -216,21 +216,21 @@ describe('ValidationService', () => {
216216
217217 const result = await validationService . validateDocument ( specFile , options ) ;
218218
219- // The validation succeeds means the validation command is successfully executed it is independent whether
220- // the document is valid or not
219+ // The validation succeeds means the validation command is successfully executed it is independent whether
220+ // the document is valid or not
221221 expect ( result . success ) . to . equal ( true ) ;
222222 if ( result . success ) {
223223 expect ( result . data ) . to . have . property ( 'status' ) ;
224224 expect ( result . data ?. status ) . to . equal ( 'invalid' ) ;
225225 expect ( result . data ) . to . have . property ( 'diagnostics' ) ;
226226 expect ( result . data ?. diagnostics ) . to . be . an ( 'array' ) ;
227-
227+
228228 // Should have an invalid-ref diagnostic for the private GitHub URL
229229 const invalidRefDiagnostic = result . data ?. diagnostics ?. find ( ( d : any ) => d . code === 'invalid-ref' ) ;
230230 // eslint-disable-next-line no-unused-expressions
231231 expect ( invalidRefDiagnostic ) . to . exist ;
232232 // Error message varies by platform - macOS shows FetchError, Linux/Windows show "Page not found"
233- expect ( invalidRefDiagnostic ?. message ) . to . satisfy ( ( msg : string ) =>
233+ expect ( invalidRefDiagnostic ?. message ) . to . satisfy ( ( msg : string ) =>
234234 msg . includes ( 'Page not found' ) || msg . includes ( 'FetchError' )
235235 ) ;
236236 expect ( invalidRefDiagnostic ?. message ) . to . include ( 'https://github.com/private-org/private-repo/blob/main/schema.yaml' ) ;
@@ -244,8 +244,8 @@ describe('ValidationService', () => {
244244 } ;
245245
246246 const result = await validationService . validateDocument ( specFile , options ) ;
247- // The validation succeeds means the validation command is successfully executed it is independent whether
248- // the document is valid or not
247+ // The validation succeeds means the validation command is successfully executed it is independent whether
248+ // the document is valid or not
249249 expect ( result . success ) . to . equal ( true ) ;
250250 if ( result . success ) {
251251 expect ( result . data ) . to . have . property ( 'status' ) ;
0 commit comments