3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-22 09:15:03 +00:00

Finish preliminary rework, ready to test

This commit is contained in:
Dark 2021-06-02 04:07:50 +02:00
parent 293a850075
commit c99e745f89
177 changed files with 854 additions and 707 deletions

View file

@ -2,7 +2,7 @@ import * as ioTs from "io-ts";
import { convertDelayStringToMS, convertMSToDelayString, getUrlsInString, tAllowedMentions } from "./utils";
import test from "ava";
import { AllowedMentions as ErisAllowedMentions } from "eris";
import { erisAllowedMentionFormat } from "./utils/erisAllowedMentionsToDjsMentionOptions";
type AssertEquals<TActual, TExpected> = TActual extends TExpected ? true : false;
@ -52,6 +52,6 @@ test("delay strings: reverse conversion (conservative)", t => {
test("tAllowedMentions matches Eris's AllowedMentions", t => {
type TAllowedMentions = ioTs.TypeOf<typeof tAllowedMentions>;
const typeTest: AssertEquals<TAllowedMentions, ErisAllowedMentions> = true;
const typeTest: AssertEquals<TAllowedMentions, erisAllowedMentionFormat> = true;
t.pass();
});