Skip to content

Instantly share code, notes, and snippets.

View Oloyedesinmiloluwa's full-sized avatar

Oloyede sinmiloluwa Oloyedesinmiloluwa

View GitHub Profile
@Oloyedesinmiloluwa
Oloyedesinmiloluwa / createArticle.test.js
Last active July 24, 2018 15:02
Fargo Team TDD activity - Sinmiloluwa
// Test for creating an Article
describe('POST ARTICLE', () => {
it('It should not create article if description is missing', (done) => {
chai.request(userRoute)
.post('/api/articles')
.send({
title: 'First Article', description: '', body: 'This is the first article so you should not expect a full article but gibberish'
})
.end((err, res) => {