fix: improve unit tests style

This commit is contained in:
Skillz4Killz
2021-11-22 16:34:30 +00:00
committed by GitHub
parent 70e9ef29ac
commit d23ff868c7
46 changed files with 1048 additions and 545 deletions
+14
View File
@@ -0,0 +1,14 @@
import { assertEquals } from "../deps.ts";
import { bot } from "../mod.ts";
Deno.test({
name: "[member] format a members avatar url",
fn: async (t) => {
assertEquals(
bot.helpers.avatarURL(130136895395987456n, 8840, {
avatar: 4055337350987360625717955448021200177333n,
}),
"https://cdn.discordapp.com/avatars/130136895395987456/eae5905ad2d18d7c8deca20478b088b5.jpg?size=128"
);
},
});