From 14164c7474bf7b400c3036f3d0a695d85e15641c Mon Sep 17 00:00:00 2001 From: shrouti1507 Date: Mon, 26 Feb 2024 16:39:06 +0530 Subject: [PATCH] fix: updating the common destination --- .../processor/configLevelFeaturesTestData.ts | 16 +++++++++++----- .../facebook_pixel/processor/ecommTestData.ts | 18 +++++++++++------- .../processor/identifyTestData.ts | 17 +++++++++++------ .../processor/pageScreenTestData.ts | 10 ++++++++++ .../facebook_pixel/processor/trackTestData.ts | 18 +++++++++++------- 5 files changed, 54 insertions(+), 25 deletions(-) diff --git a/test/integrations/destinations/facebook_pixel/processor/configLevelFeaturesTestData.ts b/test/integrations/destinations/facebook_pixel/processor/configLevelFeaturesTestData.ts index 6eb88e9f7e..def947b864 100644 --- a/test/integrations/destinations/facebook_pixel/processor/configLevelFeaturesTestData.ts +++ b/test/integrations/destinations/facebook_pixel/processor/configLevelFeaturesTestData.ts @@ -1,11 +1,17 @@ import { VERSION } from '../../../../../src/v0/destinations/facebook_pixel/config'; -import { - overrideDestination, - transformResultBuilder, - generateTrackPayload, -} from '../../../testUtils'; +import { overrideDestination, generateTrackPayload } from '../../../testUtils'; const commonDestination = { + ID: '12335', + Name: 'sample-destination', + DestinationDefinition: { + ID: '123', + Name: 'facebook_pixel', + DisplayName: 'Facebook Pixel', + Config: {}, + }, + WorkspaceID: '123', + Transformations: [], Config: { limitedDataUSage: true, blacklistPiiProperties: [ diff --git a/test/integrations/destinations/facebook_pixel/processor/ecommTestData.ts b/test/integrations/destinations/facebook_pixel/processor/ecommTestData.ts index 6810ba9d20..689be3a6d5 100644 --- a/test/integrations/destinations/facebook_pixel/processor/ecommTestData.ts +++ b/test/integrations/destinations/facebook_pixel/processor/ecommTestData.ts @@ -1,13 +1,17 @@ import { VERSION } from '../../../../../src/v0/destinations/facebook_pixel/config'; -import { removeUndefinedAndNullValues } from '@rudderstack/integrations-lib'; -import { - overrideDestination, - transformResultBuilder, - generateSimplifiedIdentifyPayload, - generateTrackPayload, -} from '../../../testUtils'; +import { generateTrackPayload } from '../../../testUtils'; const commonDestination = { + ID: '12335', + Name: 'sample-destination', + DestinationDefinition: { + ID: '123', + Name: 'facebook_pixel', + DisplayName: 'Facebook Pixel', + Config: {}, + }, + WorkspaceID: '123', + Transformations: [], Config: { blacklistPiiProperties: [ { diff --git a/test/integrations/destinations/facebook_pixel/processor/identifyTestData.ts b/test/integrations/destinations/facebook_pixel/processor/identifyTestData.ts index acee3524ae..2582192476 100644 --- a/test/integrations/destinations/facebook_pixel/processor/identifyTestData.ts +++ b/test/integrations/destinations/facebook_pixel/processor/identifyTestData.ts @@ -1,12 +1,17 @@ import { VERSION } from '../../../../../src/v0/destinations/facebook_pixel/config'; -import { removeUndefinedAndNullValues } from '@rudderstack/integrations-lib'; -import { - overrideDestination, - transformResultBuilder, - generateSimplifiedIdentifyPayload, -} from '../../../testUtils'; +import { overrideDestination } from '../../../testUtils'; const commonDestination = { + ID: '12335', + Name: 'sample-destination', + DestinationDefinition: { + ID: '123', + Name: 'facebook_pixel', + DisplayName: 'Facebook Pixel', + Config: {}, + }, + WorkspaceID: '123', + Transformations: [], Config: { blacklistPiiProperties: [ { diff --git a/test/integrations/destinations/facebook_pixel/processor/pageScreenTestData.ts b/test/integrations/destinations/facebook_pixel/processor/pageScreenTestData.ts index 6f29dacd4d..58465296e6 100644 --- a/test/integrations/destinations/facebook_pixel/processor/pageScreenTestData.ts +++ b/test/integrations/destinations/facebook_pixel/processor/pageScreenTestData.ts @@ -1,6 +1,16 @@ import { VERSION } from '../../../../../src/v0/destinations/facebook_pixel/config'; import { generateSimplifiedPageOrScreenPayload, overrideDestination } from '../../../testUtils'; const commonDestination = { + ID: '12335', + Name: 'sample-destination', + DestinationDefinition: { + ID: '123', + Name: 'facebook_pixel', + DisplayName: 'Facebook Pixel', + Config: {}, + }, + WorkspaceID: '123', + Transformations: [], Config: { blacklistPiiProperties: [ { diff --git a/test/integrations/destinations/facebook_pixel/processor/trackTestData.ts b/test/integrations/destinations/facebook_pixel/processor/trackTestData.ts index c8b28d58e6..87ed14cdc8 100644 --- a/test/integrations/destinations/facebook_pixel/processor/trackTestData.ts +++ b/test/integrations/destinations/facebook_pixel/processor/trackTestData.ts @@ -1,13 +1,17 @@ import { VERSION } from '../../../../../src/v0/destinations/facebook_pixel/config'; -import { removeUndefinedAndNullValues } from '@rudderstack/integrations-lib'; -import { - overrideDestination, - transformResultBuilder, - generateSimplifiedIdentifyPayload, - generateTrackPayload, -} from '../../../testUtils'; +import { generateTrackPayload } from '../../../testUtils'; const commonDestination = { + ID: '12335', + Name: 'sample-destination', + DestinationDefinition: { + ID: '123', + Name: 'facebook_pixel', + DisplayName: 'Facebook Pixel', + Config: {}, + }, + WorkspaceID: '123', + Transformations: [], Config: { blacklistPiiProperties: [ {