-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added error in case email, utk and object is not provided (#1374)
* Added error in case email, utk and object is not provided * Added unit test case for the payload validation error condition * Added snapshot for the condition when one of email, utk or objectId provided * Updated the test case that was failing --------- Co-authored-by: Harsh Vardhan <[email protected]>
- Loading branch information
1 parent
f980f43
commit e05e642
Showing
4 changed files
with
121 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...destinations/hubspot/sendCustomBehavioralEvent/__tests__/__snapshots__/index.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`HubSpot.sendCustomBehavioralEvent One of email, utk or objectId is provided 1`] = ` | ||
Object { | ||
"email": undefined, | ||
"eventName": "pe22596207_test_event_http", | ||
"objectId": undefined, | ||
"occurredAt": "2023-07-04T10:25:44.778Z", | ||
"properties": Object { | ||
"hs_city": "city", | ||
}, | ||
"utk": "abverazffa===1314122f", | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters