UNPKG

@averagehelper/corde

Version:

A simple library for Discord bot tests. (Republished fork to demonstrate a bugfix)

40 lines (39 loc) 1.17 kB
import { Group } from "../types"; declare class Reporter { private readonly _bgSuccess; private readonly _bgInfo; private readonly _bgError; private readonly _bold; private readonly _red; private readonly _black; private readonly _bgSuccessBold; private _successCount; private _failureCount; /** * Prints the output of each assertion. * @param groups All groups of tests * @returns Returns true if all tests has passed */ outPutResult(groups: Group[]): boolean; printNoTestFound(): void; private breakLine; private printGroup; private printTest; private printAssertion; private showSummary; private doesAllTestsPassed; private doesSomeTestsPassed; private printFullSuccess; private printPartialSuccess; private printFullFailure; private printFailure; private printSuccess; private printFailureWithValues; private printFailureOnlyWithCommandName; private printSuccessWithValues; private printSuccessOnlyWithCommandName; private getNotWordIfTrue; private getPrintingValueByType; } declare const reporter: Reporter; export { reporter };