Skip to content

Commit d250560

Browse files
committed
Fixes test
1 parent b80cbb9 commit d250560

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/actions/file/src/openIssue.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export async function openIssue(octokit: Octokit, repoWithOwner: string, finding
2121
const owner = repoWithOwner.split('/')[0]
2222
const repo = repoWithOwner.split('/')[1]
2323

24+
// Only include a ruleId label when it's defined
2425
const labels = [
2526
`${finding.scannerType}-scanning-issue`,
2627
...(finding.ruleId ? [`${finding.scannerType} rule: ${finding.ruleId}`] : []),

.github/actions/file/tests/generateIssueBody.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('generateIssueBody', () => {
2525

2626
expect(body).toContain('## What')
2727
expect(body).toContain('## Acceptance Criteria')
28-
expect(body).toContain('The specific axe violation reported in this issue is no longer reproducible.')
28+
expect(body).toContain('The specific violation reported in this issue is no longer reproducible.')
2929
expect(body).not.toContain('Specifically:')
3030
})
3131

0 commit comments

Comments
 (0)