Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added test suite #2

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Added test suite #2

wants to merge 9 commits into from

Conversation

Leftn
Copy link

@Leftn Leftn commented Feb 11, 2018

Had to move the discord initialisation into a main function to stop it from running when running tests.

I am unfamiliar with Node so I don't know if this is best practice, you might want to have a look at this and change accordingly.

I only added tests for the function I created, I might write a few more for the other functions as I try to understand them.

Copy link
Owner

@leon-vd leon-vd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for that. The bot is getting a bit unwieldy for one file. I haven't done a lot of tests with node.js either. I might try and refactor the code to be tidier and split up a bit, which in turn should make the test cases easier to implement, as it should have more available. Testing manually after every deploy is error prone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants