mirror of
https://github.com/stablyai/orca.git
synced 2026-10-18 00:03:20 +00:00
Fix expected slug to include host field in GitHub PR link test
Updates the smart-source paste-intent test fixture to match the repository slug shape that now carries a `host` field, keeping GHES host identity intact through the paste-intent parsing path.
This commit is contained in:
@@ -12,7 +12,7 @@ describe('resolvePasteIntent', () => {
|
||||
it('classifies a GitHub issue/PR URL as a github-link', () => {
|
||||
expect(resolvePasteIntent('https://github.com/acme/widgets/pull/12')).toEqual({
|
||||
kind: 'github-link',
|
||||
link: { slug: { owner: 'acme', repo: 'widgets' }, number: 12, type: 'pr' }
|
||||
link: { slug: { owner: 'acme', repo: 'widgets', host: 'github.com' }, number: 12, type: 'pr' }
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user