using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe('USER SIGN UP TEST', () => { | |
| it('should return user signed up successfully and return token', (done) => { | |
| chai | |
| .request(app) | |
| .post('/api/v1/users/auth/signup') | |
| .send({ | |
| username: 'tomiadebanjo', | |
| email: '[email protected]', | |
| password: 'Password' | |
| }) |
- Related Setup: https://gist.github.com/hofmannsven/6814278
- Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
- Interactive Beginners Tutorial: http://try.github.io/
- Git Cheatsheet by GitHub: https://services.github.com/on-demand/downloads/github-git-cheat-sheet/
- Go to https://travis-ci.org/, and add your GitHub repo.
- From the Repo settings, on Travis, you can set the ENV vars and enable some options such as
- Build on push
- Build pull requests