Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonSharratt committed Jan 31, 2020
1 parent ca92313 commit 5ca4424
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions microservices/requestApi/test/v1/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ chai.use(chaiHttp);

describe("Requests", function() {
var activeRequestId = '';
var incorrectId = '';
var fileId = 'test_' + Math.random().toString(36) + '.jpeg';
after(function(done){
db.Request.deleteMany({}, function(err){
Expand Down Expand Up @@ -309,16 +310,15 @@ describe("Requests", function() {
res.body.should.have.property('result');
res.body.result.should.have.property('_id');
activeRequestId = res.body.result._id;
incorrectId = activeRequestId.substring(0, activeRequestId.length-1)+"1";
if (incorrectId === activeRequestId){
incorrectId = activeRequestId.substring(0, activeRequestId.length-1)+"2";
}
console.log("D", activeRequestId, incorrectId);
done();
});
});

var incorrectId = activeRequestId.substring(0, activeRequestId.length-1)+"1";
console.log("D", activeRequestId, incorrectId);
if (incorrectId === activeRequestId){
incorrectId = activeRequestId.substring(0, activeRequestId.length-1)+"2";
}
console.log("D", activeRequestId, incorrectId);

it('it should fail to save a request', function (done) {
chai.request(server)
Expand Down

0 comments on commit 5ca4424

Please sign in to comment.