fix ci test

This commit is contained in:
Sayem Chowdhury 2021-03-06 00:22:36 +06:00
parent e468369727
commit 2326dbf0f3
1 changed files with 9 additions and 9 deletions

View File

@ -44,15 +44,6 @@ test('GET TRACK LYRICS', async (t) => {
t.is(response.LYRICS_TEXT.length, 1719);
});
test('GET MUSIXMATCH LYRICS', async (t) => {
const track = await api.getTrackInfo(SNG_ID);
const lyrics = await getLyricsMusixmatch(`${track.ART_NAME} - ${track.SNG_TITLE}`);
t.truthy(lyrics);
t.true(lyrics.length > 7000);
t.true(lyrics.length < 8000);
});
test('GET ALBUM INFO', async (t) => {
const response = await api.getAlbumInfo(ALB_ID);
@ -190,4 +181,13 @@ if (process.env.CI) {
t.true(Buffer.isBuffer(trackWithMetadata));
t.is(trackWithMetadata.length, 25453375);
});
} else {
test('GET MUSIXMATCH LYRICS', async (t) => {
const track = await api.getTrackInfo(SNG_ID);
const lyrics = await getLyricsMusixmatch(`${track.ART_NAME} - ${track.SNG_TITLE}`);
t.truthy(lyrics);
t.true(lyrics.length > 7000);
t.true(lyrics.length < 8000);
});
}