aboutsummaryrefslogtreecommitdiff
path: root/tests/srcom/posts.test.ts
blob: aad5f105a36b5ba17223fe56c4caf8cb9e360a4c (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: 588
Game Forums: 779
Total: 1367`;
	assertEquals(res, expected);
});