fix ci test
This commit is contained in:
parent
e468369727
commit
2326dbf0f3
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue