Skip to content

Commit

Permalink
fix: adding data delivery test cases for all endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
shrouti1507 committed Dec 6, 2024
1 parent 9eb31bf commit 97d531f
Show file tree
Hide file tree
Showing 3 changed files with 598 additions and 4 deletions.
6 changes: 5 additions & 1 deletion src/v1/destinations/iterable/responseStrategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ class ResponseStrategy {
handleError(responseParams): void {
const { destinationResponse, rudderJobMetadata } = responseParams;
const { response, status } = destinationResponse;
const errorMessage = JSON.stringify(response.params) || 'unknown error format';
const errorMessage =
JSON.stringify(response.params) ||
JSON.stringify(response.msg) ||
JSON.stringify(response.message) ||
'unknown error format';

Check warning on line 32 in src/v1/destinations/iterable/responseStrategy.ts

View check run for this annotation

Codecov / codecov/patch

src/v1/destinations/iterable/responseStrategy.ts#L32

Added line #L32 was not covered by tests

const responseWithIndividualEvents = rudderJobMetadata.map((metadata) => ({
statusCode: status,
Expand Down
Loading

0 comments on commit 97d531f

Please sign in to comment.