aboutsummaryrefslogtreecommitdiff
path: root/tests/srcom/posts.test.ts
blob: 788cd530efc6974011448482fc4e6639b544310a (plain) (blame)
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: 589
Game Forums: 779
Total: 1368`;
	assertEquals(res, expected);
});