Addtl Testing Logic

pull/1/head
j 2024-03-17 23:23:37 -04:00
parent 99d39524bd
commit 98830cb0ff
1 changed files with 8 additions and 0 deletions

View File

@ -1,10 +1,18 @@
import { CommentFetcher } from "../../src/rdrama/services/CommentFetcher";
import SessionManager from "../../src/rdrama/session/SessionManager"
main();
async function main(): Promise<void> {
console.log('1')
const axiosSession = SessionManager.getInstance()
console.log('2')
let maxPages = 5
for (let page = 1; page <= maxPages; page++) {
const newComments = await CommentFetcher.fetchComments(page)
}
console.log('3')
await axiosSession.shutdown()
console.log('4')
}