Skip to content

Commit

Permalink
Improve error message for a REST test (#53037)
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorsector authored Nov 8, 2024
1 parent b3c8699 commit ab4cc82
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rest/tests/openapi-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ describe('markdown for each rest version', () => {
Object.keys(openApiSchema[version][category]),
`The REST version: ${version}'s category: ${category} does not include the subcategory: ${subCategory}. Please check file: ${file}`,
).toContain(subCategory)
expect(categoryApplicableVersions[category]).toContain(version)
expect(
categoryApplicableVersions[category],
`The versions that apply to category ${category} does not contain the ${version}, as is expected. Please check the versions for file ${file} or look at the index that governs that file (in its parent directory).`,
).toContain(version)
}
})
})
Expand Down

0 comments on commit ab4cc82

Please sign in to comment.