You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
631 B

import AO3 from "../mod.ts";
import { assert } from "https://deno.land/std@0.167.0/testing/asserts.ts";
export default function test(ao3: AO3) {
Deno.test("misc", async (test) => {
await test.step("alternate instances", async () => {
const ao3 = new AO3({
url: "https://squidgeworld.org/",
});
const work = await ao3.getWork(34491);
await work.init();
assert(
work.name === "Implementing OTW's Code To Build SquidgeWorld",
"failed to get a work from alternate instance",
);
});
});
}