Closed j3k0 closed 9 years ago
Hey @elmigranto, let me know if you need a quick intro about the ganomede-invitations work.
Here's initial change to using real restify in tests.
Looks pretty neat to me, the only problem I can see is slower tests, so maybe we should look into best practices on parallelizing them later. Not a problem for now and I'm sure mocha can ran certain files only.
I didn't made any checks for expiring invitations for now, #4 should be addressed before we continue with this and #2.
This is ready.
I was mistakenly calling sendError
without next
arg, i fixed it in #2. Probably should test error sending better from now on.
Shouldn't be a problem if you merge pulls one after another, but I guess this is not ideal, any advice?
Shouldn't be a problem if you merge pulls one after another, but I guess this is not ideal, any advice?
I merge one -> rebase the second on master -> merge the second. It looks clean in the end.
@elmigranto Thanks for the job on this module. You write nice, clean and maintainable code. Keep it up!
src/invitations-api.coffee
is incomplete, needs to support listing of the users's invitations.Tasks:
test/tests-invitations-api.coffee
src/invitations-api.coffee
Notes:
fakeredis
(https://github.com/hdachev/fakeredis) and other mock classes found intests/
folder.POST
is implemented for inspiration.Additional instructions:
make
to execute the tests.make coverage
and open doc/coverage.html to check your progress.