Skip to content

Commit

Permalink
chore: increae coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
aashishmalik committed Sep 21, 2023
1 parent 66a076c commit daa48f9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
"destKey": "timestampMicros",
"sourceKeys": "timestamp",
"sourceFromGenericMap": true,
"required": true,
"metadata": {
"type": "microSecondTimestamp"
}
"required": true
},
{
"destKey": "floodlightActivityId",
Expand Down
1 change: 0 additions & 1 deletion src/v0/destinations/campaign_manager/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ function processTrack(message, metadata, destination) {
delete requestJson.limitAdTracking;
}
requestJson.timestampMicros = requestJson.timestampMicros.toString();

const encryptionInfo = {};
// prepare encrptionInfo if encryptedUserId or encryptedUserIdCandidates is given
if (properties.encryptedUserId || properties.encryptedUserIdCandidates) {
Expand Down
6 changes: 3 additions & 3 deletions test/__tests__/data/campaign_manager.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
{
"floodlightConfigurationId": "213123123",
"ordinal": "string",
"timestampMicros": "1668624722000000",
"timestampMicros": "2022-11-17T00:22:02.903+05:30",
"floodlightActivityId": "456543345245",
"quantity": "455678",
"value": 756,
Expand Down Expand Up @@ -234,7 +234,7 @@
{
"floodlightConfigurationId": "213123123",
"ordinal": "string",
"timestampMicros": "1668624722000000",
"timestampMicros": "2022-11-17T00:22:02.903+05:30",
"floodlightActivityId": "456543345245",
"quantity": "455678",
"value": 756,
Expand Down Expand Up @@ -452,7 +452,7 @@
{
"ordinal": "64458271",
"matchId": "64458271",
"timestampMicros": "1600282322000000",
"timestampMicros": "2020-09-17T00:22:02.903+05:30",
"floodlightActivityId": "16263081",
"floodlightConfigurationId": "9234061",
"quantity": "1",
Expand Down
4 changes: 2 additions & 2 deletions test/__tests__/data/campaign_manager_router_output.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{
"nonPersonalizedAd": false,
"treatmentForUnderage": false,
"timestampMicros": "1668624722000000",
"timestampMicros": "2022-11-17T00:22:02.903+05:30",
"floodlightConfigurationId": "213123123",
"ordinal": "string",
"quantity": "455678",
Expand Down Expand Up @@ -87,7 +87,7 @@
{
"nonPersonalizedAd": false,
"treatmentForUnderage": false,
"timestampMicros": "1668624722000000",
"timestampMicros": "2022-11-17T00:22:02.903+05:30",
"floodlightConfigurationId": "213123123",
"ordinal": "string",
"quantity": "455678",
Expand Down

0 comments on commit daa48f9

Please sign in to comment.