Files
deepseek-harness/scripts/verify-public-repository-links.spec.ts
2026-08-08 01:10:57 +08:00

17 lines
628 B
TypeScript

import { describe, expect, it } from 'vitest'
import { findInternalRepositoryReferences } from './verify-public-repository-links.ts'
describe('public repository link policy', () => {
it('rejects the internal remote and accepts the public home', () => {
const internalRepository = ['deepseek-harness', 'deepseek-harness'].join('/')
const source = [
'https://github.com/deepseek-ai/deepseek-harness-sdk',
`https://github.com/${internalRepository}/issues/1`,
].join('\n')
expect(findInternalRepositoryReferences('subject.md', source)).toEqual([
{ file: 'subject.md', line: 2 },
])
})
})