feat: enhance API functionality with new request handling and export methods
This commit is contained in:
@@ -1,8 +1,28 @@
|
||||
// import { assert } from "jsr:@std/assert";
|
||||
// import { dropRule, refresh } from "@root/plugins/rule34/api.ts";
|
||||
import { assert } from "jsr:@std/assert";
|
||||
import * as api from "@root/plugins/rule34/api.ts"
|
||||
|
||||
// Deno.test("Test Drop", async () => {
|
||||
// await refresh();
|
||||
// const link = await dropRule();
|
||||
// assert(link !== "", "Empty String was dropped!");
|
||||
// });
|
||||
|
||||
Deno.test("Post Comment", async () => {
|
||||
const response = await api.getPostComments(1213);
|
||||
assert(response !== undefined)
|
||||
});
|
||||
|
||||
Deno.test("Get Tag by ID", async () => {
|
||||
const response = await api.getTagByID(1);
|
||||
assert(response !== undefined)
|
||||
});
|
||||
|
||||
Deno.test("Get Post Comments", async () => {
|
||||
const response = await api.getPostComments(1);
|
||||
assert(response !== undefined)
|
||||
});
|
||||
|
||||
Deno.test("Get Tag by ID 1", async () => {
|
||||
const response = await api.getTagByID(1);
|
||||
assert(response !== undefined)
|
||||
});
|
||||
|
||||
Deno.test("Get Tag List", async () => {
|
||||
const response = await api.getTagList(6);
|
||||
assert(response !== undefined)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user