refactor: rename drop functions for clarity and update tests

This commit is contained in:
fzzinchemical
2025-03-28 07:49:42 +01:00
parent 442dd6f4c6
commit d8be2c92f0
5 changed files with 146 additions and 98 deletions

View File

@@ -1,8 +1,8 @@
import { assert } from "jsr:@std/assert"
import {refresh, drop} from "@root/plugins/rule34/api.ts"
import { assert } from "jsr:@std/assert";
import { dropRule, refresh } from "@root/plugins/rule34/api.ts";
Deno.test("Test Drop", async() => {
await refresh()
const link = await drop()
assert(link !== "", "Empty String was dropped!")
})
Deno.test("Test Drop", async () => {
await refresh();
const link = await dropRule();
assert(link !== "", "Empty String was dropped!");
});