@@ -6,7 +6,7 @@ import { diffsMatcher } from '../../../helper/matchers'
66const COMPONENTS_SCHEMAS = [ 'components' , 'schemas' ]
77
88export function runResponseSiblingPropertiesSchema ( suiteId : string , commonPath : JsonPath ) : void {
9- runTests ( suiteId , commonPath )
9+ runCommonRefSiblingPropertiesTests ( suiteId , commonPath )
1010
1111 test ( 'Change referenced enum when sibling exists for ref' , async ( ) => {
1212 const testId = 'change-referenced-enum-when-sibling-exists-for-ref'
@@ -38,7 +38,7 @@ export function runResponseSiblingPropertiesSchema(suiteId: string, commonPath:
3838}
3939
4040export function runSiblingPropertiesSchema ( suiteId : string , commonPath : JsonPath ) : void {
41- runTests ( suiteId , commonPath )
41+ runCommonRefSiblingPropertiesTests ( suiteId , commonPath )
4242
4343 test ( 'Change referenced enum when sibling exists for ref' , async ( ) => {
4444 const testId = 'change-referenced-enum-when-sibling-exists-for-ref'
@@ -69,7 +69,7 @@ export function runSiblingPropertiesSchema(suiteId: string, commonPath: JsonPath
6969 } )
7070}
7171
72- function runTests ( suiteId : string , commonPath : JsonPath ) : void {
72+ function runCommonRefSiblingPropertiesTests ( suiteId : string , commonPath : JsonPath ) : void {
7373 test ( 'Add sibling description for ref' , async ( ) => {
7474 const testId = 'add-sibling-description-for-ref'
7575 const result = await compareFiles ( suiteId , testId )
@@ -85,7 +85,7 @@ function runTests(suiteId: string, commonPath: JsonPath): void {
8585
8686 test ( 'Change sibling enum for ref' , async ( ) => {
8787 const testId = 'change-sibling-enum-for-ref'
88- const result = await compareFiles ( suiteId , testId )
89- expect ( result . length ) . toEqual ( 0 )
88+ const diffs = await compareFiles ( suiteId , testId )
89+ expect ( diffs ) . toBeEmpty ( )
9090 } )
9191}
0 commit comments