Skip to content

Instantly share code, notes, and snippets.

Avatar

Jesse Omoefe Jesse-efe

  • Lagos Nigeria
View GitHub Profile
@Jesse-efe
Jesse-efe / loginTest.js
Last active Mar 21, 2019
TDD test Spec
View loginTest.js
import chai from 'chai';
import chaiHttp from 'chai-http';
import app from '../source/app';
const { expect } = chai;
chai.use(chaiHttp);
describe('/api/v1/auth/login', () => {
it('should not login with invalid email', (done) => {
chai.request(app)