Skip to content

Commit

Permalink
updated errorreporter for failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav Kochar committed Dec 6, 2024
1 parent b1a5957 commit 55949b0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ describe('MultiStatus', () => {
status: 400,
errortype: 'PAYLOAD_VALIDATION_FAILED',
errormessage: 'Phone number could not be converted to E.164 format.',
errorreporter: 'DESTINATION'
errorreporter: 'INTEGRATIONS'
})

// The Second event doesn't fail as there is no error reported by Klaviyo API
Expand Down Expand Up @@ -170,7 +170,7 @@ describe('MultiStatus', () => {
status: 400,
errortype: 'PAYLOAD_VALIDATION_FAILED',
errormessage: 'One of External ID, Phone Number or Email is required.',
errorreporter: 'DESTINATION'
errorreporter: 'INTEGRATIONS'
})

// The third event fails as pre-request validation fails for having invalid email
Expand Down Expand Up @@ -292,15 +292,15 @@ describe('MultiStatus', () => {
status: 400,
errortype: 'PAYLOAD_VALIDATION_FAILED',
errormessage: 'Phone number could not be converted to E.164 format.',
errorreporter: 'DESTINATION'
errorreporter: 'INTEGRATIONS'
})

// The second event fails as pre-request validation fails for not having any user identifier
expect(response[1]).toMatchObject({
status: 400,
errortype: 'PAYLOAD_VALIDATION_FAILED',
errormessage: 'One of External ID, Phone Number or Email is required.',
errorreporter: 'DESTINATION'
errorreporter: 'INTEGRATIONS'
})
})
})
Expand Down

0 comments on commit 55949b0

Please sign in to comment.