Files
discordeno/tests
rigormorrtiss 9555de5ad3 add: stage instances events (#944)
* feat: add stage instances events

* feat: add stage instances events

* Add new line

* Add new lines

* Sort event declaration alphabetically

* Move to types/discordeno

* Update src/types/discordeno/eventHandlers.ts

* Update src/types/discordeno/stage_instance.ts

* Update src/types/guilds/guild.ts

* Apply suggestions

* Commit from GitHub Actions (Lint)

* Remove DiscordenoStageInstance

* Directly pass data.d

* Commit from GitHub Actions (Lint)

Co-authored-by: rigormorrtiss <rigormorrtiss@users.noreply.github.com>
Co-authored-by: itohatweb <to@itoh.at>
2021-05-17 20:57:16 +02:00
..
fmt
2021-05-13 17:40:43 +00:00
2021-04-20 17:26:58 +02:00
2021-04-13 11:47:36 +00:00
2021-04-15 18:06:31 +02:00
2021-04-17 15:33:29 +02:00
2021-05-08 11:44:05 +02:00
2021-04-13 13:42:36 +02:00
2021-05-13 10:37:31 +04:00
2021-05-17 20:57:16 +02:00
2021-05-15 12:59:33 +02:00
2021-05-06 13:01:11 +00:00
2021-05-06 13:01:11 +00:00
2021-04-09 14:41:31 +00:00

Discordeno Unit Test Guideline

Unit tests are MANDATORY!

Every time you create a new function in the library, you must also add a unit test for it. A PR should/will not be merged without a valid unit test for it. If you are unable to create a unit test, please leave a comment in your PR asking for help.

Test Locally

You do not need to push to the github repo to have the CI do the tests for you. You can test them locally by doing the following:

DISCORD_TOKEN=YOUR_BOT_TOKEN_HERE deno test --no-check -A tests/mod.ts

Please note that the token you use should be for a trivial unused bot. Never use your main bot tokens for this.

Ordering

The order of unit tests is very important. Please do not move/change the order of the tests unless you know what you are doing. Certain tests depend on other previous tests. You may add a test but becareful where you add it.

Naming

Each function should have it's own separate file for it's tests. The file should be organized under it's main category which will be the [] portion of the tests name. For example, [guild] create a new guild will be found in tests/guilds/create_guild.ts