Skip to content

Instantly share code, notes, and snippets.

View tomiadebanjo's full-sized avatar
🏠
Working from home

Adebanjo oluwatominiyin tomiadebanjo

🏠
Working from home
View GitHub Profile
@tomiadebanjo
tomiadebanjo / test.spec.js
Last active September 7, 2018 03:19
Test on authors haven codebase (metis-ah)
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'
})
@tomiadebanjo
tomiadebanjo / ultimate-ut-cheat-sheet.md
Created June 27, 2018 13:14 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon

The Ultimate Unit Testing Cheat-sheet

For Mocha, Chai and Sinon

using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies


@tomiadebanjo
tomiadebanjo / README.md
Created June 27, 2018 12:24 — forked from hofmannsven/README.md
My simply Git Cheatsheet

Integrate TravisCI and CodeClimate with a NodeJS app

First Steps

Add your repo to TravisCI

  1. Go to https://travis-ci.org/, and add your GitHub repo.
  2. From the Repo settings, on Travis, you can set the ENV vars and enable some options such as
  • Build on push
  • Build pull requests