Skip to content

Commit

Permalink
Extend api test
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamMagaluk committed Sep 23, 2016
1 parent 241e629 commit 5dcb14b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/test_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -1037,9 +1037,14 @@ describe('Zetta Api', function() {
request(getHttpServer(app))
.post(url)
.type('form')
.send({ action: 'error', value: 'some error' })
.send({ action: 'error', error: 'some error' })
.expect(getBody(function(res, body) {
assert.equal(res.statusCode, 500);
assert(body.class.indexOf('action-error') >= 0);
assert(body.properties.message);
assert.equal(body.properties.message, 'some error');

hasLinkRel(body.links, rels.self);
}))
.end(done);
});
Expand Down

0 comments on commit 5dcb14b

Please sign in to comment.