Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

616 B
Raw Blame
import { describe, expect, it } from 'vitest'
import { githubRepoIdentityKey, isDefaultGitHubHost } from './repository-identity-key'

describe('GitHub repository identity', () => {
  it('normalizes case and harmless surrounding whitespace without merging GHES hosts', () => {
    expect(isDefaultGitHubHost(' GitHub.com ')).toBe(true)
    expect(githubRepoIdentityKey({ owner: 'Acme', repo: 'Widgets', host: ' GitHub.com ' })).toBe(
      'acme/widgets'
    )
    expect(
      githubRepoIdentityKey({ owner: 'Acme', repo: 'Widgets', host: ' GHE.EXAMPLE:8443 ' })
    ).toBe('ghe.example:8443/acme/widgets')
  })
})