Written register and login function in node api with basic testing frame...

...works

Mocha and Protractor are used for testing. Passport is used for
authentication.