mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
test(postman): update postman collection files
This commit is contained in:
@ -7238,15 +7238,22 @@
|
||||
" );",
|
||||
"}",
|
||||
"",
|
||||
"// Response body should have value \"connector error\" for \"error type\"",
|
||||
"// Response body should have value \"cancellation succeeded\" for \"payment status\"",
|
||||
"if (jsonData?.status) {",
|
||||
" pm.test(",
|
||||
" \"[POST]::/payments/:id/cancel - Content check if value for 'jsonData.status' matches 'cancelled'\",",
|
||||
" \"[POST]::/payments/:id/cancel - Content check if value for 'jsonData.status' matches 'succeeded'\",",
|
||||
" function () {",
|
||||
" pm.expect(jsonData.status).to.eql(\"cancelled\");",
|
||||
" pm.expect(jsonData.status).to.eql(\"succeeded\");",
|
||||
" },",
|
||||
" );",
|
||||
"}",
|
||||
"",
|
||||
"// Response body should have value \"0\" for \"amount_capturable\"",
|
||||
"if (jsonData?.amount){",
|
||||
" pm.test(\"[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 0'\", function() {",
|
||||
" pm.expect(jsonData.amount_capturable).to.eql(0);",
|
||||
" } )",
|
||||
"} ",
|
||||
""
|
||||
],
|
||||
"type": "text/javascript"
|
||||
|
||||
Reference in New Issue
Block a user