Skip to content

Commit

Permalink
chore: improving coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Sai Sankeerth <[email protected]>
  • Loading branch information
Sai Sankeerth committed Feb 16, 2024
1 parent 66e6375 commit 5c91d17
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions test/integrations/destinations/custify/deleteUsers/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,34 @@ export const data = [
},
},
},

{
description:
'Test 4: should fail when one of the userAttributes does not contain `userId`',
input: {
request: {
body: [
{
destType: destType.toUpperCase(),
userAttributes: [
{
userId: 'rudder1',
},
{
},
],
config: {
apiKey: 'dummyApiKey',
},
},
],
},
},
output: {
response: {
status: 400,
body: [{ statusCode: 400, error: 'User id for deletion not present' }],
},
},
},
].map((props) => ({ ...commonData, ...props }));

0 comments on commit 5c91d17

Please sign in to comment.