-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Unify testing code style #1091
Comments
Also using |
We should also remove |
I added an item about arrow functions. There is a section in the Mocha website about them. I could find incorrect use of arrow functions in the tests for: @nventuro Not sure if we should also open an issue for this. Are you tracking each item separately also? |
Tbh I'm not doing great work at handling this, I should've opened separate issues (and maybe a meta-issue?). Thanks for the bit about arrow functions! |
This should be easier to track now. |
This is now ready, thanks @jacobherrington, @justuswilhelm and @Aniket-Engg! 🎉 |
Some test suites are a bit all over the place, we should make them more consistent. Current items:
const
andlet
in favor ofvar
await
instead of.then
chai.should
instead ofassert
this
to store global variables (Use this in tests #1200)chai-as-promised
(await promise).should.bla
instead of assigning and testing (Await and test instead of assigning #1201)owner
) to accountsexpectEvent
to test logs-related stuff (Use expectEvent to test logs #1232)The text was updated successfully, but these errors were encountered: