INNER CODE UNIT · TypeScript
reportUrls
mikepenz/action-junit-report · __tests__/outputs.test.ts:17
const reportUrls = checkInfos.map(info => info.url).join('\n')
expect(reportUrls).toBe('https://github.com/owner/repo/runs/123')
})
it('should format multiple URLs with newline separation', () => {
const checkInfos: CheckInfo[] = [
{
name: 'Test Report 1',
url: 'https://github.com/owner/repo/runs/123'
},
{
name: 'Test Report 2',
url: 'https://github.com/owner/repo/runs/456'
},
{
name: 'Test Report 3',
url: 'https://github.com/owner/repo/runs/789'
}