get rid of old tests + make lint issues disappear

master
Drake 1 year ago
parent 37f137881d
commit 285b2e69bf

@ -1,19 +0,0 @@
import AO3 from "./src/classes/AO3.ts";
const ao3 = new AO3();
await ao3.authenticate(
Deno.env.get("AO3USERNAME") as string,
Deno.env.get("AO3PASSWORD") as string,
);
const res = await ao3.search({
fandoms: ["Murder Drones (Web Series)"],
limit: 10,
});
await res.update(1);
res.results.forEach(
(v) => console.log(v.name),
);

@ -1,12 +0,0 @@
import AO3 from "./src/classes/AO3.ts";
const ao3 = new AO3();
const res = await ao3.search({
freeform: ["no beta read we die like sammy"],
limit: 1,
});
await res.update(1);
console.log(await res.results[0].chapters[0].text);

@ -15,13 +15,13 @@ export default class AO3 {
get: (path: string) => Promise<Response>;
post: (
path: string,
payload: Record<string, any>,
payload: unknown,
) => Promise<Response>;
};
DOMParser = new DOMParser();
fetch: typeof fetch;
cookieJar: CookieJar;
#headers: Record<string, any>;
#headers: Record<string, string>;
/**
* a representation of AO3 in class form

@ -1,17 +0,0 @@
import AO3 from "./src/classes/AO3.ts";
import { assert } from "https://deno.land/std@0.161.0/testing/asserts.ts";
const ao3 = new AO3();
/* const res = await ao3.search({
any: "hazbin hotel",
limit: 1,
});
await res.update(1);
console.log(await res.results[0].chapters[0].text); */
let work = await ao3.getWork("43724875");
await work.init();
Loading…
Cancel
Save