pass server, client to before/afterEach Mocha hooks #60

Open
kschzt opened this Issue Oct 7, 2013 · 1 comment

Comments

Projects
None yet
2 participants

kschzt commented Oct 7, 2013

Hi,

Would be great to do some repetitive startup/shutdown logic (like creating a user and logging in) in the hooks before/after running the actual tests. It would make the test code a lot cleaner too.

Could we pass the server and clients to these functions as well? Is the environment already running at that point?

Thanks.

Collaborator

apendua commented May 20, 2014

@kschzt Please see #121

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment