-
Notifications
You must be signed in to change notification settings - Fork 670
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
Add tests for the sortUsers method #197
Conversation
b43ea88
to
68952fe
Compare
|
||
describe("Chan", function() { | ||
describe("#sortUsers()", function() { | ||
// TODO Use this version instead when switching to irc-framework |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove these TODOs, it's unnecessary. After this PR is merged, just update the tests in ir-framework branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed in 1715059.
Add a couple of users with different cases in the name, and a couple of special symbols to test case insensitive sorting too. |
1715059
to
a6b452d
Compare
Also, should test file name match tested file name (like currently)? Or |
a6b452d
to
6495f17
Compare
Add tests for the sortUsers method
Behold... tests!
I'm usually not too fond of having placeholder code until something happens, but considering @xPaw is making good progress by himself on #167, I thought I would give a minor hand by providing the lines to change to have these tests running in his PR.And as a matter of fact... these tests are currently failing on #167 :D
Nevermind, removed the placeholders, will re-add when time comes.
I hope you like 'em, let me tell you this is the beginning of a whole lot of PRs about testing I'm planning to submit :-)
(Yes, I'm adding Chai in the
devDependencies
, but it's really worth it!)