refactor: rename drop functions for clarity and update tests
This commit is contained in:
@@ -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!");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user