-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the unit test case for linkedin-conversion (#1785)
Co-authored-by: Harsh Vardhan <[email protected]>
- Loading branch information
1 parent
a8a8631
commit c8d0130
Showing
1 changed file
with
5 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ const testDestination = createTestIntegration(Destination) | |
const event = createTestEvent({ | ||
event: 'Example Event', | ||
type: 'track', | ||
timestamp: '1695884800000', | ||
timestamp: `${Date.now()}`, | ||
context: { | ||
traits: { | ||
email: '[email protected]', | ||
|
@@ -41,7 +41,7 @@ const event = createTestEvent({ | |
const settings = {} | ||
|
||
describe('LinkedinConversions.streamConversion', () => { | ||
xit('should successfully send the event', async () => { | ||
it('should successfully send the event', async () => { | ||
const associateCampignToConversion = { | ||
campaign: 'urn:li:sponsoredCampaign:123456`', | ||
conversion: 'urn:lla:llaPartnerConversion:789123' | ||
|
@@ -54,7 +54,7 @@ describe('LinkedinConversions.streamConversion', () => { | |
|
||
const streamConversionEvent = { | ||
conversion: `urn:lla:llaPartnerConversion:${payload.conversionId}`, | ||
conversionHappenedAt: 1698764171467, | ||
conversionHappenedAt: Date.now(), | ||
user: { | ||
userIds: [ | ||
{ | ||
|
@@ -136,11 +136,11 @@ describe('LinkedinConversions.streamConversion', () => { | |
).rejects.toThrowError('Timestamp should be within the past 90 days.') | ||
}) | ||
|
||
xit('should throw an error if Either userIds array or userInfo with firstName and lastName is not present.', async () => { | ||
it('should throw an error if Either userIds array or userInfo with firstName and lastName is not present.', async () => { | ||
const event = createTestEvent({ | ||
event: 'Example Event', | ||
type: 'track', | ||
timestamp: '1695884800000', | ||
timestamp: `${Date.now()}`, | ||
context: { | ||
traits: { | ||
email: '[email protected]', | ||
|