const assert = require('assert')
const { reportArtifactUrl, reportArtifactLinks } = require('../utils/reportArtifactLinks')

assert.equal(reportArtifactUrl({ backgroundReportUrl: 'background.docx' }, 'background'), 'background.docx')
assert.equal(reportArtifactUrl({ professionalReportUrl: 'professional.docx' }, 'professional'), 'professional.docx')
assert.equal(reportArtifactUrl({ publicReportUrl: '', fileUrl: 'public.pdf' }, 'public'), 'public.pdf')
assert.deepEqual(reportArtifactLinks({
	backgroundReportUrl: 'background.docx',
	professionalReportUrl: 'professional.docx',
	publicReportUrl: 'public.pdf'
}), {
	background: 'background.docx',
	professional: 'professional.docx',
	public: 'public.pdf'
})

console.log('reportArtifactLinks tests passed')
