deemixer/webui/tests/unit/utils/downloads.spec.js

13 lines
357 B
JavaScript
Raw Permalink Normal View History

import { aggregateDownloadLinks } from '../../../src/utils/downloads'
describe('download utils', () => {
describe('aggregateDownloadLinks', () => {
it('merges links into a single string', () => {
const release = { link: 'abcde' }
const aggregated = aggregateDownloadLinks([release, release])
expect(aggregated).toBe('abcde;abcde')
})
})
})