From bf7a7a96804a7db9c28009251e434791d43bd35f Mon Sep 17 00:00:00 2001 From: j Date: Sun, 17 Mar 2024 14:11:00 -0400 Subject: [PATCH] Inital commit of test file --- tests/api/redisAPITest.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/api/redisAPITest.ts diff --git a/tests/api/redisAPITest.ts b/tests/api/redisAPITest.ts new file mode 100644 index 0000000..c80798c --- /dev/null +++ b/tests/api/redisAPITest.ts @@ -0,0 +1,10 @@ +import { CommentFetcher } from "../../src/rdrama/services/CommentFetcher"; + +main(); + +async function main(): Promise { + let maxPages = 5 + for (let page = 1; page <= maxPages; page++) { + const newComments = await CommentFetcher.fetchComments(page) + } +} \ No newline at end of file