From bfa711c6a075e136c9a1c539458dffb778144920 Mon Sep 17 00:00:00 2001 From: Sayem Chowdhury Date: Tue, 20 Apr 2021 23:41:56 +0600 Subject: [PATCH] test show --- __tests__/api.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/__tests__/api.ts b/__tests__/api.ts index 1955a27..ebadcbb 100644 --- a/__tests__/api.ts +++ b/__tests__/api.ts @@ -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) => { const channel = await api.getChannelList(); t.is(channel.count, channel.data.length);