Skip to content

Commit

Permalink
test tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonSharratt committed Jan 31, 2020
1 parent 56a98f8 commit 2338112
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion microservices/requestApi/test/v1/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ describe("Requests", function() {
.get('/v1?limit=1&page=1&name=testName&start_date=2000/01/01/00/00/00&end_date=9999/01/01/00/00/00')
.set("Authorization", "Bearer " + jwt)
.end(function (err, res) {
console.log("SHOULD GET REQUEST body". res.body);
console.log("SHOULD GET REQUEST body", res.body);
res.should.have.status(200);
res.body.length.should.be.eql(1);
done();
Expand Down
6 changes: 4 additions & 2 deletions microservices/requestApi/test/v2/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ describe("Requests", function() {

it('it should get file_status_codes', function (done) {
chai.request(server)
.get('/v1/file_status_codes')
.get('/v2/file_status_codes')
.set("Authorization", "Bearer " + jwt)
.end(function (err, res) {
res.should.have.status(200);
res.body.should.have.property('0');
Expand All @@ -107,7 +108,8 @@ describe("Requests", function() {

it('it should get request_types', function (done) {
chai.request(server)
.get('/v1/request_types')
.get('/v2/request_types')
.set("Authorization", "Bearer " + jwt)
.end(function (err, res) {
res.should.have.status(200);
res.body.should.have.property('import');
Expand Down

0 comments on commit 2338112

Please sign in to comment.