mirror of
https://github.com/stablyai/orca.git
synced 2026-10-26 00:03:55 +00:00
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>
20 lines
693 B
TypeScript
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)
|
|
})
|
|
})
|