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]),

This comment was marked as spam.

Copy link
@Boy555578

Boy555578 Nov 17, 2024

src/rest/tests/openapi-schema.jshttps://github.com/Homebrew/formulae.brew.sh.git

`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.

Copy link
@Boy555578

Boy555578 Nov 17, 2024

  1. src/rest/tests/openapi-schema.jssrc/rest/tests/openapi-schema.jsremoving-yourself-from-an-organization.md
}
})
})
Expand Down

1 comment on commit ab4cc82

@Boy555578

This comment was marked as spam.

Please sign in to comment.