Skip to content

Commit bcc1963

Browse files
authored
Merge pull request github#17424 from github/repo-sync
repo sync
2 parents 74b420d + d47f416 commit bcc1963

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

components/rest/RestOperationHeading.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ type Props = {
99
export function RestOperationHeading({ slug, title, descriptionHTML }: Props) {
1010
return (
1111
<>
12-
<h3 id={slug}>
12+
<h2 id={slug}>
1313
<a href={`#${slug}`}>
1414
<LinkIcon size={16} className="m-1" />
1515
</a>
1616
{title}
17-
</h3>
17+
</h2>
1818
<div dangerouslySetInnerHTML={{ __html: descriptionHTML }} />
1919
</>
2020
)

tests/rendering/rest.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ import { getDiffOpenAPIContentRest } from '../../script/rest/test-open-api-schem
99
describe('REST references docs', () => {
1010
jest.setTimeout(3 * 60 * 1000)
1111

12-
// Checks that every version of the /rest/references/checks
12+
// Checks that every version of the /rest/checks
1313
// page has every operation defined in the openapi schema.
1414
test('loads schema data for all versions', async () => {
1515
for (const version in allVersions) {
1616
const checksRestOperations = await getRest(version, 'checks', 'runs')
1717
const $ = await getDOM(`/en/${version}/rest/checks/runs`)
18-
const domH3Ids = $('h3')
19-
.map((i, h3) => $(h3).attr('id'))
18+
const domH2Ids = $('h2')
19+
.map((i, h2) => $(h2).attr('id'))
2020
.get()
2121
const schemaSlugs = checksRestOperations.map((operation) => slugger.slug(operation.title))
22-
expect(schemaSlugs.every((slug) => domH3Ids.includes(slug))).toBe(true)
22+
expect(schemaSlugs.every((slug) => domH2Ids.includes(slug))).toBe(true)
2323
}
2424
})
2525

0 commit comments

Comments
 (0)