Skip to content

Commit fbbd457

Browse files
STRATCONN-6743 - [Facebook CAPI] - refactor FB CAPI Actions part 3 (#3723)
* STRATCONN-6743 - [Facebook CAPI] - refactor for pageView Actions part 3 * Update packages/destination-actions/src/destinations/facebook-conversions-api/__tests__/purchase.test.ts Co-authored-by: Copilot <[email protected]> * Update packages/destination-actions/src/destinations/facebook-conversions-api/__tests__/viewContent2.test.ts Co-authored-by: Copilot <[email protected]> * Update packages/destination-actions/src/destinations/facebook-conversions-api/__tests__/purchase2.test.ts Co-authored-by: Copilot <[email protected]> * extra validation for purchase to reject empty currency values * fixing breaking test * Update packages/destination-actions/src/destinations/facebook-conversions-api/shared/functions.ts Co-authored-by: Copilot <[email protected]> * correcing name of pre-existing unit test --------- Co-authored-by: Copilot <[email protected]>
1 parent 1f806a9 commit fbbd457

16 files changed

Lines changed: 3021 additions & 2411 deletions

File tree

packages/destination-actions/src/destinations/facebook-conversions-api/__tests__/purchase.test.ts

Lines changed: 661 additions & 427 deletions
Large diffs are not rendered by default.

packages/destination-actions/src/destinations/facebook-conversions-api/__tests__/purchase2.test.ts

Lines changed: 698 additions & 462 deletions
Large diffs are not rendered by default.

packages/destination-actions/src/destinations/facebook-conversions-api/__tests__/search.test.ts

Lines changed: 344 additions & 238 deletions
Large diffs are not rendered by default.

packages/destination-actions/src/destinations/facebook-conversions-api/__tests__/search2.test.ts

Lines changed: 375 additions & 268 deletions
Large diffs are not rendered by default.

packages/destination-actions/src/destinations/facebook-conversions-api/__tests__/shared-tests/functions.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('FacebookConversionsApi', () => {
2525
event_time: '1631210000'
2626
} as any
2727

28-
expect(() => validate(payload, EventType.Purchase)).toThrow('Must include at least one user data property')
28+
expect(() => validate(payload, EventType.AddToCart)).toThrow('Must include at least one user data property')
2929
})
3030

3131
it('should throw when action_source is website but client_user_agent is missing', () => {

0 commit comments

Comments
 (0)