diff --git a/test/integrations/destinations/smartly/processor/track.ts b/test/integrations/destinations/smartly/processor/track.ts index 08b3f41b0e..9331b0631d 100644 --- a/test/integrations/destinations/smartly/processor/track.ts +++ b/test/integrations/destinations/smartly/processor/track.ts @@ -1,5 +1,3 @@ -const moment = require('moment'); -import { verifyAdInteractionTime } from '../../../../../src/cdk/v2/destinations/smartly/utils'; import { destination } from '../commonConfig'; export const trackTestData = [ @@ -19,7 +17,7 @@ export const trackTestData = [ properties: { platform: 'meta', ad_unit_id: '228287', - ad_interaction_time: '1612137600', + ad_interaction_time: 1612137600, email: 'eventIdn01@sample.com', }, type: 'track', @@ -53,7 +51,7 @@ export const trackTestData = [ JSON: { platform: 'meta', ad_unit_id: '228287', - ad_interaction_time: '1612137600', + ad_interaction_time: 1612137600, conversions: '1', event_name: 'Add to cart', }, diff --git a/test/integrations/destinations/smartly/processor/validation.ts b/test/integrations/destinations/smartly/processor/validation.ts index d0a657b011..bd18d15b1c 100644 --- a/test/integrations/destinations/smartly/processor/validation.ts +++ b/test/integrations/destinations/smartly/processor/validation.ts @@ -138,7 +138,7 @@ export const validationFailures = [ properties: { platform: 'snapchat', ad_unit_id: '2653387', - ad_interaction_time: '1675094400', + ad_interaction_time: 1675094400, }, anonymousId: 'anon_123', integrations: { diff --git a/test/integrations/destinations/smartly/router/data.ts b/test/integrations/destinations/smartly/router/data.ts index ff500eab4c..8f904378c3 100644 --- a/test/integrations/destinations/smartly/router/data.ts +++ b/test/integrations/destinations/smartly/router/data.ts @@ -22,8 +22,8 @@ export const data = [ properties: { platform: 'meta', conversions: 1, - ad_unit_id: "221187", - ad_interaction_time: '1690867200', + ad_unit_id: '221187', + ad_interaction_time: 1690867200, }, }, metadata: { jobId: 2, userId: 'u2' }, @@ -36,8 +36,8 @@ export const data = [ properties: { conversions: 3, platform: 'snapchat', - ad_unit_id: "77187", - ad_interaction_time: '1690867200', + ad_unit_id: '77187', + ad_interaction_time: 1690867200, }, }, metadata: { jobId: 3, userId: 'u3' }, @@ -61,23 +61,23 @@ export const data = [ events: [ { conversions: 1, - ad_unit_id: "221187", + ad_unit_id: '221187', platform: 'meta', - ad_interaction_time: '1690867200', + ad_interaction_time: 1690867200, event_name: 'event1', }, { conversions: 1, - ad_unit_id: "221187", + ad_unit_id: '221187', platform: 'meta', - ad_interaction_time: '1690867200', + ad_interaction_time: 1690867200, event_name: 'event2', }, { conversions: 3, - ad_unit_id: "77187", + ad_unit_id: '77187', platform: 'snapchat', - ad_interaction_time: '1690867200', + ad_interaction_time: 1690867200, event_name: 'add to cart', }, ], @@ -136,8 +136,8 @@ export const data = [ properties: { platform: 'meta', conversions: 1, - ad_unit_id: "221187", - ad_interaction_time: '1690867200', + ad_unit_id: '221187', + ad_interaction_time: 1690867200, }, }, metadata: { jobId: 11, userId: 'u1' }, @@ -152,8 +152,8 @@ export const data = [ properties: { conversions: 3, platform: 'snapchat', - ad_unit_id: "77187", - ad_interaction_time: '1690867200', + ad_unit_id: '77187', + ad_interaction_time: 1690867200, }, }, metadata: { jobId: 13, userId: 'u1' }, @@ -167,8 +167,8 @@ export const data = [ properties: { conversions: 3, platform: 'snapchat', - ad_unit_id: "12387", - ad_interaction_time: '1690867200', + ad_unit_id: '12387', + ad_interaction_time: 1690867200, }, }, metadata: { jobId: 14, userId: 'u1' }, @@ -182,8 +182,8 @@ export const data = [ integrations: { All: true }, properties: { conversions: 3, - ad_unit_id: "77187", - ad_interaction_time: '1690867200', + ad_unit_id: '77187', + ad_interaction_time: 1690867200, }, }, metadata: { jobId: 15, userId: 'u1' }, @@ -198,8 +198,8 @@ export const data = [ properties: { conversions: 3, platform: 'tiktok', - ad_unit_id: "789187", - ad_interaction_time: '1690867200', + ad_unit_id: '789187', + ad_interaction_time: 1690867200, }, }, metadata: { jobId: 16, userId: 'u1' }, @@ -247,15 +247,15 @@ export const data = [ platform: 'meta', conversions: 1, event_name: 'event1', - ad_unit_id: "221187", - ad_interaction_time: '1690867200', + ad_unit_id: '221187', + ad_interaction_time: 1690867200, }, { platform: 'meta', conversions: 1, event_name: 'event2', - ad_unit_id: "221187", - ad_interaction_time: '1690867200', + ad_unit_id: '221187', + ad_interaction_time: 1690867200, }, ], }, @@ -288,15 +288,15 @@ export const data = [ conversions: 3, event_name: 'purchase', platform: 'snapchat', - ad_unit_id: "77187", - ad_interaction_time: '1690867200', + ad_unit_id: '77187', + ad_interaction_time: 1690867200, }, { conversions: 3, event_name: 'add to cart', platform: 'tiktok', - ad_unit_id: "789187", - ad_interaction_time: '1690867200', + ad_unit_id: '789187', + ad_interaction_time: 1690867200, }, ], },