Skip to content

Commit eb503b7

Browse files
committed
DA-1354 remove: the test case for more than 1 H1s
1 parent eefb025 commit eb503b7

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

test/test-h1s-in-content.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,6 @@ function validateH1MatchesFrontmatterTitle(fileContent, frontmatter, filePath) {
2323
};
2424
}
2525

26-
// Check if there is exactly one H1 tag
27-
if (h1s.length > 1) {
28-
return {
29-
valid: false,
30-
h1s,
31-
expectedTitle,
32-
error: `Expected 0 or 1 H1 tag, number of H1 tags found: ${h1s.length} in ${filePath}`
33-
};
34-
}
35-
3626
// Check if the single H1 tag matches the expected title
3727
if (h1s[0] !== expectedTitle) {
3828
return {

0 commit comments

Comments
 (0)