aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRitesh Ghosh <[email protected]>2024-03-03 23:10:49 +0530
committerRitesh Ghosh <[email protected]>2024-03-03 23:10:49 +0530
commit5bb6f098d525ba3542159476f0f35f82703e2c8a (patch)
treeb01498deacc496d7db72b759c5db1db3c8330886 /test
parent9188054aca34cd7ad4b481e4b53223b5640bf9f0 (diff)
downloadaniwatch-api-5bb6f098d525ba3542159476f0f35f82703e2c8a.tar.xz
aniwatch-api-5bb6f098d525ba3542159476f0f35f82703e2c8a.zip
test: add estimatedSchedule test
Diffstat (limited to 'test')
-rw-r--r--test/estimatedSchedule.test.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/estimatedSchedule.test.ts b/test/estimatedSchedule.test.ts
new file mode 100644
index 0000000..cd5f417
--- /dev/null
+++ b/test/estimatedSchedule.test.ts
@@ -0,0 +1,8 @@
+import { expect, test } from "vitest";
+import { scrapeEstimatedSchedule } from "../src/parsers/index.js";
+
+test("returns estimated schedule anime release", async () => {
+ const data = await scrapeEstimatedSchedule("2024-03-30");
+
+ expect(data.scheduledAnimes).not.toEqual([]);
+});