Skip to content

Instantly share code, notes, and snippets.

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

Maureen OKiMaureen

🏠
Working from home
  • Lagos, Nigeria
View GitHub Profile
// Test for creating an Article
@OKiMaureen
OKiMaureen / createArticleTest.js
Last active July 23, 2018 19:51
Fargo-Maureen
import app from 'somewhere that does not exist';
describe('POST /api/articles', () => {
it('should not add article with an empty description field', ()=>{
chai.request(app)
.post(/api/articles);
.set('token', dummyToken);
.send({
title: 'Good Article',
body: 'Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque',