Skip to content

Commit ab4cc82

Browse files
authored
Improve error message for a REST test (#53037)
1 parent b3c8699 commit ab4cc82

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/rest/tests/openapi-schema.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,10 @@ describe('markdown for each rest version', () => {
121121
Object.keys(openApiSchema[version][category]),
122122
`The REST version: ${version}'s category: ${category} does not include the subcategory: ${subCategory}. Please check file: ${file}`,
123123
).toContain(subCategory)
124-
expect(categoryApplicableVersions[category]).toContain(version)
124+
expect(
125+
categoryApplicableVersions[category],
126+
`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).`,
127+
).toContain(version)
125128
}
126129
})
127130
})

0 commit comments

Comments
 (0)