Skip to content

Commit

Permalink
added more tests for v2
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonSharratt committed Jan 30, 2020
1 parent f9f44c6 commit 8a38138
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions microservices/requestApi/test/v2/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,8 @@ describe("Forms", function() {
.set("Authorization", "Bearer "+jwt)
.end(function (err, res) {
res.should.have.status(200);
res.body.should.have.property('data');
res.body.should.have.property('0');
res.body[0].should.have.property('_id');
done();
});
});
Expand All @@ -557,8 +558,9 @@ describe("Forms", function() {
.set("Authorization", "Bearer "+jwt)
.end(function (err, res) {
res.should.have.status(200);
res.body.should.have.property('0');
res.body[0].should.have.property('_id');
res.body.should.have.property('forms');
res.body.forms.should.have.property('internal')
res.body.forms.should.have.property('external')
done();
});
});
Expand Down

0 comments on commit 8a38138

Please sign in to comment.