add tests

This commit is contained in:
ITOH
2021-04-20 17:26:58 +02:00
parent e0ca050e13
commit 92ab2885fa
3 changed files with 35 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import { defaultTestOptions } from "../ws/start_bot.ts";
import { assertEquals } from "../deps.ts";
import { validDiscoveryTerm } from "../../src/helpers/discovery/valid_discovery_term.ts";
Deno.test({
name: "[discovery] get categories",
async fn() {
const valid = await validDiscoveryTerm("Bots");
assertEquals(
valid,
true,
);
},
...defaultTestOptions,
});