-
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.
- Loading branch information
1 parent
191d7ea
commit 222608a
Showing
6 changed files
with
192 additions
and
74 deletions.
There are no files selected for viewing
75 changes: 75 additions & 0 deletions
75
...ion-actions/src/destinations/optimizely-web/__tests__/__snapshots__/snapshot.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,75 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Testing snapshot for actions-optimizely-web destination: trackEvent action - all fields 1`] = ` | ||
Object { | ||
"account_id": "0dx]zHxQ6Zbx", | ||
"anonymize_ip": true, | ||
"client_name": "Segment Optimizely Web Destination", | ||
"client_version": "1.0.0", | ||
"enrich_decisions": true, | ||
"project_id": -566109321297.92, | ||
"visitors": Array [ | ||
Object { | ||
"attributes": Array [], | ||
"session_id": "0dx]zHxQ6Zbx", | ||
"snapshots": Array [ | ||
Object { | ||
"decisions": Array [], | ||
"events": Array [ | ||
Object { | ||
"entity_id": "custom_event_id_1", | ||
"key": "custom_event_1", | ||
"revenue": -56610932129792.01, | ||
"tags": Object { | ||
"$opt_event_properties": Object {}, | ||
"currency": "HRK", | ||
"quantity": -56610932129792, | ||
"testType": "0dx]zHxQ6Zbx", | ||
}, | ||
"timestamp": 1612137600000, | ||
"type": "other", | ||
"uuid": "0dx]zHxQ6Zbx", | ||
"value": -566109321297.92, | ||
}, | ||
], | ||
}, | ||
], | ||
"visitor_id": "0dx]zHxQ6Zbx", | ||
}, | ||
], | ||
} | ||
`; | ||
|
||
exports[`Testing snapshot for actions-optimizely-web destination: trackEvent action - required fields 1`] = ` | ||
Object { | ||
"account_id": "0dx]zHxQ6Zbx", | ||
"anonymize_ip": true, | ||
"client_name": "Segment Optimizely Web Destination", | ||
"client_version": "1.0.0", | ||
"enrich_decisions": true, | ||
"project_id": -566109321297.92, | ||
"visitors": Array [ | ||
Object { | ||
"attributes": Array [], | ||
"snapshots": Array [ | ||
Object { | ||
"decisions": Array [], | ||
"events": Array [ | ||
Object { | ||
"entity_id": "custom_event_id_1", | ||
"key": "custom_event_1", | ||
"tags": Object { | ||
"$opt_event_properties": Object {}, | ||
}, | ||
"timestamp": 1612137600000, | ||
"type": "other", | ||
"uuid": "0dx]zHxQ6Zbx", | ||
}, | ||
], | ||
}, | ||
], | ||
"visitor_id": "0dx]zHxQ6Zbx", | ||
}, | ||
], | ||
} | ||
`; |
18 changes: 0 additions & 18 deletions
18
packages/destination-actions/src/destinations/optimizely-web/__tests__/index.test.ts
This file was deleted.
Oops, something went wrong.
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
75 changes: 75 additions & 0 deletions
75
.../src/destinations/optimizely-web/trackEvent/__tests__/__snapshots__/snapshot.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,75 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Testing snapshot for OptimizelyWeb's trackEvent destination action: all fields 1`] = ` | ||
Object { | ||
"account_id": "PXs*Kr1gqV9(", | ||
"anonymize_ip": true, | ||
"client_name": "Segment Optimizely Web Destination", | ||
"client_version": "1.0.0", | ||
"enrich_decisions": true, | ||
"project_id": -9262421990440.96, | ||
"visitors": Array [ | ||
Object { | ||
"attributes": Array [], | ||
"session_id": "PXs*Kr1gqV9(", | ||
"snapshots": Array [ | ||
Object { | ||
"decisions": Array [], | ||
"events": Array [ | ||
Object { | ||
"entity_id": "custom_event_id_1", | ||
"key": "custom_event_1", | ||
"revenue": -926242199044096.1, | ||
"tags": Object { | ||
"$opt_event_properties": Object {}, | ||
"currency": "SBD", | ||
"quantity": -926242199044096, | ||
"testType": "PXs*Kr1gqV9(", | ||
}, | ||
"timestamp": 1612137600000, | ||
"type": "other", | ||
"uuid": "PXs*Kr1gqV9(", | ||
"value": -9262421990440.96, | ||
}, | ||
], | ||
}, | ||
], | ||
"visitor_id": "PXs*Kr1gqV9(", | ||
}, | ||
], | ||
} | ||
`; | ||
|
||
exports[`Testing snapshot for OptimizelyWeb's trackEvent destination action: required fields 1`] = ` | ||
Object { | ||
"account_id": "PXs*Kr1gqV9(", | ||
"anonymize_ip": true, | ||
"client_name": "Segment Optimizely Web Destination", | ||
"client_version": "1.0.0", | ||
"enrich_decisions": true, | ||
"project_id": -9262421990440.96, | ||
"visitors": Array [ | ||
Object { | ||
"attributes": Array [], | ||
"snapshots": Array [ | ||
Object { | ||
"decisions": Array [], | ||
"events": Array [ | ||
Object { | ||
"entity_id": "custom_event_id_1", | ||
"key": "custom_event_1", | ||
"tags": Object { | ||
"$opt_event_properties": Object {}, | ||
}, | ||
"timestamp": 1612137600000, | ||
"type": "other", | ||
"uuid": "PXs*Kr1gqV9(", | ||
}, | ||
], | ||
}, | ||
], | ||
"visitor_id": "PXs*Kr1gqV9(", | ||
}, | ||
], | ||
} | ||
`; |
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