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 |
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
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', |