mirror of
https://github.com/d-fi/d-fi-core.git
synced 2025-07-23 05:35:06 +02:00
update tests
This commit is contained in:
parent
f79fa66832
commit
55ffcdfdfe
@ -20,6 +20,14 @@ test.serial('GET TRACK INFO', async (t) => {
|
|||||||
t.is(response.__TYPE__, 'song');
|
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) => {
|
test('GET TRACK COVER', async (t) => {
|
||||||
const track = await api.getTrackInfo(SNG_ID);
|
const track = await api.getTrackInfo(SNG_ID);
|
||||||
const cover = await downloadAlbumCover(track, 500);
|
const cover = await downloadAlbumCover(track, 500);
|
||||||
|
@ -109,7 +109,7 @@ interface contributorsPublicApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface trackTypePublicApi {
|
export interface trackTypePublicApi {
|
||||||
id: string; // '3135556';
|
id: number; // 3135556;
|
||||||
readable: boolean;
|
readable: boolean;
|
||||||
title: string; // 'Harder, Better, Faster, Stronger'
|
title: string; // 'Harder, Better, Faster, Stronger'
|
||||||
title_short: string; // 'Harder, Better, Faster, Stronger'
|
title_short: string; // 'Harder, Better, Faster, Stronger'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user