@averagehelper/corde
Version:
A simple library for Discord bot tests. (Republished fork to demonstrate a bugfix)
17 lines (16 loc) • 393 B
TypeScript
/**
* Represents a group of tests.
*
* @example
*
* group('main commands', () => {
* test('Hello command must return... hello!!', () => {
* expect('hello').toReturn('hello!!');
* });
* });
*
* @param name Name of the group
* @param action Tests related to this group
* @since 1.0
*/
export declare function group(name: string, action: () => void | Promise<void>): void;