Skip to content

Commit ff2b376

Browse files
committed
amend wording
1 parent c130b82 commit ff2b376

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

__tests__/github/core.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ describe('addReportFooters', () => {
151151
addReportFooters(report, inputs, true)
152152

153153
expect(mockCore.summary.addRaw).toHaveBeenCalledWith(
154-
expect.stringContaining('Comparison with')
154+
expect.stringContaining('± Comparison with')
155155
)
156156
expect(mockCore.summary.addRaw).toHaveBeenCalledWith(
157157
expect.stringContaining(
158-
'by [abcdef1](https://github.com/test-owner/test-repo/commit/abcdef1234567890)'
158+
'at [abcdef1](https://github.com/test-owner/test-repo/commit/abcdef1234567890)'
159159
)
160160
)
161161
})
@@ -201,7 +201,7 @@ describe('addReportFooters', () => {
201201
addReportFooters(report, inputs, true)
202202

203203
expect(mockCore.summary.addRaw).toHaveBeenCalledWith(
204-
expect.stringContaining('Comparison with')
204+
expect.stringContaining('± Comparison with')
205205
)
206206
})
207207

@@ -396,7 +396,7 @@ describe('addReportFooters', () => {
396396
)
397397
expect(mockCore.summary.addRaw).toHaveBeenCalledWith(
398398
expect.stringContaining(
399-
'by [abcdef1](https://github.com/test-owner/test-repo/commit/abcdef1234567890)'
399+
'at [abcdef1](https://github.com/test-owner/test-repo/commit/abcdef1234567890)'
400400
)
401401
)
402402
})
@@ -448,7 +448,7 @@ describe('addReportFooters', () => {
448448
)
449449
expect(mockCore.summary.addRaw).toHaveBeenCalledWith(
450450
expect.stringContaining(
451-
'by [abcdef1](https://github.com/test-owner/test-repo/commit/abcdef1234567890)'
451+
'at [abcdef1](https://github.com/test-owner/test-repo/commit/abcdef1234567890)'
452452
)
453453
)
454454
})
@@ -498,7 +498,7 @@ describe('addReportFooters', () => {
498498

499499
// Should only contain commit, not build info (since buildNumber is required)
500500
expect(mockCore.summary.addRaw).toHaveBeenCalledWith(
501-
expect.stringContaining('Comparison with')
501+
expect.stringContaining('± Comparison with')
502502
)
503503
})
504504

@@ -551,7 +551,7 @@ describe('addReportFooters', () => {
551551
)
552552
expect(mockCore.summary.addRaw).toHaveBeenCalledWith(
553553
expect.stringContaining(
554-
'by [abcdef1](https://github.com/test-owner/test-repo/commit/abcdef1234567890)'
554+
'at [abcdef1](https://github.com/test-owner/test-repo/commit/abcdef1234567890)'
555555
)
556556
)
557557
expect(mockCore.summary.addRaw).not.toHaveBeenCalledWith(

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/github/core.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export function addReportFooters(
145145
const footerMessages: string[] = []
146146

147147
if (report.baseline && hasPreviousResultsReports) {
148-
let comparisonText = `Comparison with `
148+
let comparisonText = `± Comparison with `
149149
if (report.baseline.buildNumber || report.baseline.buildName) {
150150
const buildDisplay = report.baseline.buildNumber
151151
if (report.baseline.buildUrl) {
@@ -157,7 +157,7 @@ export function addReportFooters(
157157
if (report.baseline.commit) {
158158
const commitSha = report.baseline.commit.substring(0, 7)
159159
const commitUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/commit/${report.baseline.commit}`
160-
comparisonText += ` by [${commitSha}](${commitUrl})`
160+
comparisonText += ` at [${commitSha}](${commitUrl})`
161161
}
162162

163163
footerMessages.push(comparisonText)

0 commit comments

Comments
 (0)