From 68ee056f97a6868decc999f590a0899e022cfb36 Mon Sep 17 00:00:00 2001 From: Venkata Pranav Date: Mon, 8 Jan 2024 14:55:21 +0530 Subject: [PATCH 1/3] fixing-tests --- tests/orders.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/orders.test.ts b/tests/orders.test.ts index e45f910..520759f 100644 --- a/tests/orders.test.ts +++ b/tests/orders.test.ts @@ -585,4 +585,4 @@ it('Get Instrument By Id Test', function (done) { - +//testing From 219dc05cd6ebd4cf06153e97c2fe5135ef1b9ded Mon Sep 17 00:00:00 2001 From: Venkata Pranav Date: Mon, 8 Jan 2024 15:48:55 +0530 Subject: [PATCH 2/3] fixing-tests --- tests/orders.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/orders.test.ts b/tests/orders.test.ts index 520759f..fd9e8ab 100644 --- a/tests/orders.test.ts +++ b/tests/orders.test.ts @@ -578,6 +578,7 @@ 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.data) assert.fail("Fail error message") done() }); From 3d1471e5ec20485078cd5d2aaacf79e2ee2251e5 Mon Sep 17 00:00:00 2001 From: Venkata Pranav Date: Mon, 8 Jan 2024 16:30:51 +0530 Subject: [PATCH 3/3] removed PG Recon test temporarily --- tests/orders.test.ts | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/tests/orders.test.ts b/tests/orders.test.ts index fd9e8ab..a11480a 100644 --- a/tests/orders.test.ts +++ b/tests/orders.test.ts @@ -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; @@ -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" @@ -578,12 +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.data) + console.log(error.response) assert.fail("Fail error message") done() }); }); - - -//testing