1 2 3 4 5 6 7 8 9 10 11
import { assertEquals } from "../../deps_testing.ts"; import { posts } from "../../src/srcom/posts.ts"; Deno.test("Get user posts by username", async () => { const res = await posts("1", { outputType: "plain" }); const expected = `Posts: 1 Site Forums: 588 Game Forums: 779 Total: 1367`; assertEquals(res, expected); });