Skip to content

Commit

Permalink
chore: added tests for delighted
Browse files Browse the repository at this point in the history
  • Loading branch information
mihir-4116 committed Apr 10, 2024
1 parent 94b8dec commit 7f99521
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/v0/destinations/delighted/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const isValidUserIdOrError = (channel, userId) => {
* @returns
*/
const getErrorStatus = (status) => {
let errStatus = status;
let errStatus;
switch (status) {
case 422:
case 401:
Expand All @@ -60,7 +60,7 @@ const getErrorStatus = (status) => {
errStatus = 500;
break;

Check warning on line 61 in src/v0/destinations/delighted/util.js

View check run for this annotation

Codecov / codecov/patch

src/v0/destinations/delighted/util.js#L52-L61

Added lines #L52 - L61 were not covered by tests
default:
errStatus = 400;
errStatus = status;
}
return errStatus;
};
Expand Down
4 changes: 2 additions & 2 deletions test/integrations/destinations/delighted/processor/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1022,12 +1022,12 @@ export const data = [
statTags: {
destType: 'DELIGHTED',
errorCategory: 'network',
errorType: 'aborted',
errorType: 'throttled',
feature: 'processor',
implementation: 'native',
module: 'destination',
},
statusCode: 400,
statusCode: 429,
},
],
},
Expand Down

0 comments on commit 7f99521

Please sign in to comment.