diff options
| author | Ritesh Ghosh <[email protected]> | 2023-08-13 19:24:11 +0530 |
|---|---|---|
| committer | Ritesh Ghosh <[email protected]> | 2023-08-13 19:24:11 +0530 |
| commit | 689aa384d479977b5290298d2f023b48b0aae0ea (patch) | |
| tree | 71ddc363c714bf391264236f5d0d7a89df228795 /test | |
| parent | 87fce0354164f364142bcd9217ce2ddeac19b215 (diff) | |
| download | aniwatch-api-689aa384d479977b5290298d2f023b48b0aae0ea.tar.xz aniwatch-api-689aa384d479977b5290298d2f023b48b0aae0ea.zip | |
test(animeProducer): added `animeProducer` parser test
Diffstat (limited to 'test')
| -rw-r--r-- | test/animeProducer.test.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/animeProducer.test.ts b/test/animeProducer.test.ts new file mode 100644 index 0000000..a75fa18 --- /dev/null +++ b/test/animeProducer.test.ts @@ -0,0 +1,11 @@ +import { scrapeProducerAnimes } from "../src/parsers"; + +test("returns animes produced by a producer", async () => { + const data = await scrapeProducerAnimes("toei-animation", 2); + + expect(data.animes).not.toEqual([]); + expect(data.topAiringAnimes).not.toEqual([]); + expect(data.top10Animes.today).not.toEqual([]); + expect(data.top10Animes.week).not.toEqual([]); + expect(data.top10Animes.month).not.toEqual([]); +}); |
