Skip to content

Commit

Permalink
update testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
sauravlal15 committed Nov 8, 2022
1 parent 4b63dbd commit 0d19066
Showing 1 changed file with 44 additions and 68 deletions.
112 changes: 44 additions & 68 deletions __tests__/data/clevertap_output.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,20 @@
"error": "userId, not present cannot track anonymous user"
},
{
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://api.clevertap.com/1/upload",
"headers": {
"X-CleverTap-Account-Id": "476550467",
"X-CleverTap-Passcode": "fbee74a147828e2932c701d19dc1f2dcfa4ac0048be3aa3a88d427090a59dc1c0fa002f1",
"Content-Type": "application/json"
},
"params": {},
"body": {
"XML": {},
"JSON_ARRAY": {},
"FORM": {},
"JSON": {
"d": [
{
"identity": "anon_id",
"type": "profile",
"profileData": {
"Email": "[email protected]",
Expand All @@ -207,48 +213,40 @@
"Married": true,
"Customer Type": "Prime",
"graduate": true,
"msgSms": true,
"msg_push": true,
"msgSms": true,
"msgemail": true,
"msgwhatsapp": false,
"custom_tags": ["Test_User", "Interested_User", "DIY_Hobby"],
"custom_mappings": {
"Office": "Trastkiv",
"Country": "Russia"
},
"address": {
"city": "kolkata",
"country": "India",
"postalCode": 789223,
"state": "WB",
"street": ""
}
}
"custom_tags": "[\"Test_User\",\"Interested_User\",\"DIY_Hobby\"]",
"custom_mappings": "{\"Office\":\"Trastkiv\",\"Country\":\"Russia\"}",
"address": "{\"city\":\"kolkata\",\"country\":\"India\",\"postalCode\":789223,\"state\":\"WB\",\"street\":\"\"}"
},
"identity": "anon_id"
}
]
}
},
"JSON_ARRAY": {},
"XML": {},
"FORM": {}
},
"type": "REST",
"files": {},
"userId": ""
},
{
"version": "1",
"type": "REST",
"method": "POST",
"params": {},
"endpoint": "https://api.clevertap.com/1/upload",
"headers": {
"X-CleverTap-Account-Id": "476550467",
"X-CleverTap-Passcode": "fbee74a147828e2932c701d19dc1f2dcfa4ac0048be3aa3a88d427090a59dc1c0fa002f1",
"Content-Type": "application/json"
},
"version": "1",
"endpoint": "https://api.clevertap.com/1/upload"
},
{
"params": {},
"body": {
"XML": {},
"JSON_ARRAY": {},
"FORM": {},
"JSON": {
"d": [
{
"identity": "anon_id",
"type": "profile",
"profileData": {
"Email": "[email protected]",
Expand All @@ -260,38 +258,24 @@
"Married": true,
"Customer Type": "Prime",
"graduate": true,
"msgSms": true,
"msg_push": true,
"msgSms": true,
"msgemail": true,
"msgwhatsapp": false,
"custom_tags": ["Test_User", "Interested_User", "DIY_Hobby"],
"custom_mappings": {
"Office": "Trastkiv",
"Country": "Russia"
},
"address": {
"city": "kolkata",
"country": "India",
"postalCode": 789223,
"state": "WB",
"street": ""
}
}
"custom_tags": "[\"Test_User\",\"Interested_User\",\"DIY_Hobby\"]",
"custom_mappings": "{\"Office\":\"Trastkiv\",\"Country\":\"Russia\"}",
"address": "{\"city\":\"kolkata\",\"country\":\"India\",\"postalCode\":789223,\"state\":\"WB\",\"street\":\"\"}"
},
"identity": "anon_id"
}
]
}
},
"JSON_ARRAY": {},
"XML": {},
"FORM": {}
},
"type": "REST",
"files": {},
"method": "POST",
"params": {},
"headers": {
"X-CleverTap-Account-Id": "476550467",
"X-CleverTap-Passcode": "fbee74a147828e2932c701d19dc1f2dcfa4ac0048be3aa3a88d427090a59dc1c0fa002f1",
"Content-Type": "application/json"
},
"version": "1",
"endpoint": "https://api.clevertap.com/1/upload"
"userId": ""
},
[
{
Expand Down Expand Up @@ -481,29 +465,21 @@
"msgSms": true,
"msgemail": true,
"msgwhatsapp": false,
"custom_tags": ["Test_User", "Interested_User", "DIY_Hobby"],
"custom_mappings": {
"Office": "Trastkiv",
"Country": "Russia"
},
"address": {
"city": "kolkata",
"country": "India",
"postalCode": 789223,
"state": "WB",
"street": ""
}
"custom_tags": "[\"Test_User\",\"Interested_User\",\"DIY_Hobby\"]",
"custom_mappings": "{\"Office\":\"Trastkiv\",\"Country\":\"Russia\"}",
"address": "{\"city\":\"kolkata\",\"country\":\"India\",\"postalCode\":789223,\"state\":\"WB\",\"street\":\"\"}"
},
"ts": 1615377562,
"identity": "anon_id"
}
]
},
"XML": {},
"JSON_ARRAY": {},
"XML": {},
"FORM": {}
},
"files": {}
"files": {},
"userId": ""
},
[
{
Expand Down

0 comments on commit 0d19066

Please sign in to comment.