Make tests green

This commit is contained in:
Phan An 2017-10-02 02:01:39 +01:00
parent b8b8ca0ee8
commit 5e0dcf2078
2 changed files with 5 additions and 3 deletions

View file

@ -38,7 +38,7 @@ export default {
/**
* Set the volume.
*
*
* @param {Event} e
*/
setVolume (e) {

View file

@ -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)