Skip to content

Commit

Permalink
Merge pull request #32 from cashfree/fix-failed-tests
Browse files Browse the repository at this point in the history
fixing-tests
  • Loading branch information
suhas-cashfree authored Jan 8, 2024
2 parents 121c380 + 3d1471e commit 9472868
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions tests/orders.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Cashfree.XClientId = process.env.CLIENT_ID;
Cashfree.XClientSecret = process.env.SECRET_KEY;
Cashfree.XEnvironment = Cashfree.Environment.SANDBOX;


var orderId = ''
var paymentSessionId = ''
var orderAmount = 3000;
Expand Down Expand Up @@ -551,25 +552,6 @@ it('Settlement Reconcilation Test', function (done) {
});
});


it('PG Reconcilation Test', function (done) {
var request = {
"pagination": {
"limit": 10
},
"filters": {
"start_date": "2023-01-01T00:00:00Z",
"end_date": "2023-01-21T23:59:59Z"
}
}
Cashfree.PGFetchRecon("2022-09-01", request).then((response) => {
done()
}).catch((error) => {
assert.fail("Fail error message")
done()
});
});

it('Get Instrument By Id Test', function (done) {
var instrumemtId = "9f9477b7-61ea-4baa-b878-a7e63d978034"
var customerId = "iij"
Expand All @@ -578,11 +560,9 @@ it('Get Instrument By Id Test', function (done) {
assert.equal(response.data.customer_id, customerId, "instrument_id is not matching")
done()
}).catch((error) => {
console.log(error.response)
assert.fail("Fail error message")
done()
});
});




0 comments on commit 9472868

Please sign in to comment.