mirror of
https://github.com/koel/koel
synced 2024-11-10 14:44:13 +00:00
Make tests green
This commit is contained in:
parent
b8b8ca0ee8
commit
5e0dcf2078
2 changed files with 5 additions and 3 deletions
|
@ -38,7 +38,7 @@ export default {
|
|||
|
||||
/**
|
||||
* Set the volume.
|
||||
*
|
||||
*
|
||||
* @param {Event} e
|
||||
*/
|
||||
setVolume (e) {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/*eslint-disable camelcase*/
|
||||
|
||||
import { http, albumInfo, artistInfo } from '..'
|
||||
|
||||
export const songInfo = {
|
||||
|
@ -16,8 +18,8 @@ export const songInfo = {
|
|||
|
||||
http.get(`${song.id}/info`, ({ data: { artist_info, album_info, youtube, lyrics }}) => {
|
||||
song.lyrics = lyrics
|
||||
artist_info && artistInfo.merge(song.artist, artist_info) // eslint-disable-line camelcase
|
||||
album_info && albumInfo.merge(song.album, album_info) // eslint-disable-line camelcase
|
||||
artist_info && artistInfo.merge(song.artist, artist_info)
|
||||
album_info && albumInfo.merge(song.album, album_info)
|
||||
song.youtube = youtube
|
||||
song.infoRetrieved = true
|
||||
resolve(song)
|
||||
|
|
Loading…
Reference in a new issue