-
Notifications
You must be signed in to change notification settings - Fork 60.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error message for a REST test (#53037)
- Loading branch information
1 parent
b3c8699
commit ab4cc82
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,7 +121,10 @@ describe('markdown for each rest version', () => { | |
Object.keys(openApiSchema[version][category]), | ||
This comment was marked as spam.
Sorry, something went wrong. |
||
`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) | ||
This comment was marked as spam.
Sorry, something went wrong.
Boy555578
|
||
} | ||
}) | ||
}) | ||
|
src/rest/tests/openapi-schema.jshttps://github.com/Homebrew/formulae.brew.sh.git