chore: update tests

This commit is contained in:
luan.lrt4@gmail.com
2022-04-24 22:58:29 -03:00
parent 2010714f50
commit d634892b01

View File

@@ -40,9 +40,6 @@ async function performTests() {
const ytmplaylist = await youtube.getPlaylist(ytmsearch?.results?.community_playlists[0].id, { client: 'YTMUSIC' }).catch((error) => error);
assert(!(ytmplaylist instanceof Error), `should retrieve and parse playlist with YouTube Music`, ytmplaylist);
const lyrics = await youtube.getLyrics(Constants.test_song_id).catch((error) => error);
assert(!(lyrics instanceof Error), `should retrieve song lyrics`, lyrics);
const video = await downloadVideo(Constants.test_video_id, youtube).catch((error) => error);
assert(!(video instanceof Error), `should download video (${Constants.test_video_id})`, video);
}
@@ -78,4 +75,4 @@ function assert(outcome, description, data) {
return outcome;
}
performTests();
performTests();