update tests

This commit is contained in:
Sayem Chowdhury 2021-03-05 16:13:29 +06:00
parent f79fa66832
commit 55ffcdfdfe
2 changed files with 9 additions and 1 deletions

View File

@ -20,6 +20,14 @@ test.serial('GET TRACK INFO', async (t) => {
t.is(response.__TYPE__, 'song');
});
test('GET TRACK INFO - PUBLIC API', async (t) => {
const response = await api.getTrackInfoPublicApi(SNG_ID);
t.is(response.id, Number(SNG_ID));
t.is(response.isrc, 'GBDUW0000059');
t.is(response.type, 'track');
});
test('GET TRACK COVER', async (t) => {
const track = await api.getTrackInfo(SNG_ID);
const cover = await downloadAlbumCover(track, 500);

View File

@ -109,7 +109,7 @@ interface contributorsPublicApi {
}
export interface trackTypePublicApi {
id: string; // '3135556';
id: number; // 3135556;
readable: boolean;
title: string; // 'Harder, Better, Faster, Stronger'
title_short: string; // 'Harder, Better, Faster, Stronger'