This file contains 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
// 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) => { |