mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-18 23:17:09 +01:00
prepend user-content anchor
This commit is contained in:
parent
5c90b26631
commit
0dee8ba699
18 changed files with 36 additions and 36 deletions
|
|
@ -138,7 +138,7 @@ function getBadge(passed: number, failed: number, skipped: number, options: Repo
|
|||
}
|
||||
const hint = failed > 0 ? 'Tests failed' : 'Tests passed successfully'
|
||||
const uri = encodeURIComponent(`${options.badgeTitle}-${message}-${color}`)
|
||||
return `[](#test-report)`
|
||||
return `[](#user-content-test-report)`
|
||||
}
|
||||
|
||||
function getTestRunsReport(testRuns: TestRunResult[], options: ReportOptions): string[] {
|
||||
|
|
@ -149,7 +149,7 @@ function getTestRunsReport(testRuns: TestRunResult[], options: ReportOptions): s
|
|||
sections.push(` `)
|
||||
}
|
||||
|
||||
sections.push('# <a name="test-report"></a> Tests report')
|
||||
sections.push('# <a name="user-content-test-report"></a> Tests report')
|
||||
|
||||
if (testRuns.length > 0 || options.onlySummary) {
|
||||
const tableData = testRuns
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue