We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
it('post the user', () => { const value = [{ text: 'Todo1' }, { text: 'Todo2' }]; return request(app) .post('/api/todos/') .send({value}) .then(res => { res.should.have.status(201); }); });
Got Error:
1 failing
The server on GET /api/todos requests post the user:
AssertionError: expected { Object (_events, _eventsCount, ...) } to have status code 201 but got 400
The text was updated successfully, but these errors were encountered:
No branches or pull requests
it('post the user', () => {
const value = [{
text: 'Todo1'
},
{
text: 'Todo2'
}];
return request(app)
.post('/api/todos/')
.send({value})
.then(res => {
res.should.have.status(201);
});
});
Got Error:
1 failing
The server
on GET /api/todos requests
post the user:
AssertionError: expected { Object (_events, _eventsCount, ...) } to have status code 201 but got 400
-400
+201
The text was updated successfully, but these errors were encountered: