test: added more date tests and added download tests; workflow: mapped @/ path in jest config

This commit is contained in:
Roberto Tonino
2021-06-02 17:28:45 +02:00
parent bda628b30b
commit 21b7629bdc
4 changed files with 28 additions and 6 deletions

View File

@@ -10,12 +10,12 @@ export function sendAddToQueue(url, bitrate = null) {
fetchData('addToQueue', { url, bitrate }, 'POST')
}
/**
* @param {{ link: string }[]} releases
* @returns {string}
*/
export function aggregateDownloadLinks(releases) {
const links = []
releases.forEach(release => {
links.push(release.link)
})
const links = releases.map(release => release.link)
return links.join(';')
}