Files
orca/mobile/src/source-control/hosted-review-copy.test.ts
T
c9bd61376f feat(mobile): combine PR sidebar and checks parity (#5641)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: gsxdsm <gsxdsm@users.noreply.github.com>
2026-06-17 22:52:12 -07:00

20 lines
693 B
TypeScript

import { describe, expect, it } from 'vitest'
import { hostedReviewCopy } from './hosted-review-copy'
describe('hostedReviewCopy', () => {
it('uses Merge Request labels for GitLab', () => {
expect(hostedReviewCopy('gitlab')).toEqual({
shortLabel: 'MR',
reviewLabel: 'merge request',
titleLabel: 'Merge Request'
})
})
it('uses Pull Request labels for GitHub and other providers and undefined', () => {
const pr = { shortLabel: 'PR', reviewLabel: 'pull request', titleLabel: 'Pull Request' }
expect(hostedReviewCopy('github')).toEqual(pr)
expect(hostedReviewCopy('bitbucket')).toEqual(pr)
expect(hostedReviewCopy(undefined)).toEqual(pr)
})
})