diff options
| author | Ritesh Ghosh <[email protected]> | 2024-03-03 23:10:24 +0530 |
|---|---|---|
| committer | Ritesh Ghosh <[email protected]> | 2024-03-03 23:10:24 +0530 |
| commit | 3307558c9812c8965038b0db43f4e8e5b871b88d (patch) | |
| tree | 481beb1eddbbc9a4c27773146afca1fe317b92b1 /test | |
| parent | 901d222521fb4a0d76769efb01bd37d2b3dfa0e6 (diff) | |
| download | aniwatch-api-3307558c9812c8965038b0db43f4e8e5b871b88d.tar.xz aniwatch-api-3307558c9812c8965038b0db43f4e8e5b871b88d.zip | |
test: add animeSearchSuggestions test
Diffstat (limited to 'test')
| -rw-r--r-- | test/animeSearchSuggestion.test.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/animeSearchSuggestion.test.ts b/test/animeSearchSuggestion.test.ts new file mode 100644 index 0000000..f3a875a --- /dev/null +++ b/test/animeSearchSuggestion.test.ts @@ -0,0 +1,8 @@ +import { expect, test } from "vitest"; +import { scrapeAnimeSearchSuggestion } from "../src/parsers/index.js"; + +test("returns animes search suggestions related to search query", async () => { + const data = await scrapeAnimeSearchSuggestion("one piece"); + + expect(data.suggestions).not.toEqual([]); +}); |
