added tests for rule34 (non sufficient)

This commit is contained in:
fzzinchemical
2025-03-27 15:10:31 +01:00
parent f97bfb03bd
commit eb6dca5368
3 changed files with 22 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
import { assert } from "@std/assert/assert";
type APIResponse = Array<{
preview_url: string;
sample_url: string;
@@ -82,3 +84,13 @@ export async function drop5() {
}
return tmp;
}
//test refresh here because local stack is not given to other functions
Deno.test("Test Image-Stack refresh", async() => {
await refresh()
const previousStack = [...hyperlinkarray]
await new Promise(r => setTimeout(r, 10000));
await refresh()
assert(previousStack.length <= hyperlinkarray.length, "Stack-size did not increase as expected!")
})