mirror of
https://github.com/d-fi/d-fi-core.git
synced 2025-07-27 07:34:42 +02:00
test show
This commit is contained in:
parent
0ee9c7368e
commit
bfa711c6a0
@ -221,6 +221,13 @@ if (process.env.CI) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test('GET SHOW LIST', async (t) => {
|
||||||
|
const show = await api.getShowInfo('338532', 10);
|
||||||
|
t.is(show.DATA.LABEL_ID, '201952');
|
||||||
|
t.is(show.EPISODES.count, 10);
|
||||||
|
t.true(Array.isArray(show.EPISODES.data));
|
||||||
|
});
|
||||||
|
|
||||||
test('GET CHANNEL LIST', async (t) => {
|
test('GET CHANNEL LIST', async (t) => {
|
||||||
const channel = await api.getChannelList();
|
const channel = await api.getChannelList();
|
||||||
t.is(channel.count, channel.data.length);
|
t.is(channel.count, channel.data.length);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user