added tests for rule34 (non sufficient)
This commit is contained in:
@@ -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!")
|
||||
})
|
||||
Reference in New Issue
Block a user