Skip to content

Commit

Permalink
chore:comment addresed
Browse files Browse the repository at this point in the history
  • Loading branch information
anantjain45823 committed Jan 16, 2024
1 parent f440bac commit 2f0f2d0
Showing 1 changed file with 63 additions and 65 deletions.
128 changes: 63 additions & 65 deletions test/integrations/destinations/klaviyo/network.ts
Original file line number Diff line number Diff line change
@@ -1,75 +1,73 @@
export const networkCallsData = [
{
httpReq: {
url: 'https://a.klaviyo.com/api/v2/list/XUepkK/subscribe',
method: 'GET',
},
httpRes: {
status: 200
},
{
httpReq: {
url: 'https://a.klaviyo.com/api/v2/list/XUepkK/subscribe',
method: 'GET',
},
{
httpReq: {
url: 'https://a.klaviyo.com/api/v2/list/XUepkK/members',
method: 'GET',
},
httpRes: {
status: 200
},
httpRes: {
status: 200,
},
{
httpReq: {
url: 'https://a.klaviyo.com/api/profiles',
method: 'GET',
data: {
attributes: {
email: "[email protected]"
}
}
},
httpRes: {
status: 409,
data: {
}
},
},
{
httpReq: {
url: 'https://a.klaviyo.com/api/v2/list/XUepkK/members',
method: 'GET',
},
{
httpReq: {
url: 'https://a.klaviyo.com/api/profiles',
method: 'GET',
},
httpRes: {
status: 201,
data: {
data: {
id: '01GW3PHVY0MTCDGS0A1612HARX',
attributes: {}
},
}
},
httpRes: {
status: 200,
},
{
httpReq: {
url: 'https://a.klaviyo.com/api/profiles',
method: 'POST',
headers: { Authorization: 'Klaviyo-API-Key dummyPrivateApiKeyforfailure' }
},
httpRes: {
},
{
httpReq: {
url: 'https://a.klaviyo.com/api/profiles',
method: 'GET',
data: {
attributes: {
email: '[email protected]',
},
},
},
httpRes: {
status: 409,
data: {},
},
{
httpReq: {
url: 'https://a.klaviyo.com/api/profiles',
method: 'POST',
},
{
httpReq: {
url: 'https://a.klaviyo.com/api/profiles',
method: 'GET',
},
httpRes: {
status: 201,
data: {
data: {
id: '01GW3PHVY0MTCDGS0A1612HARX',
attributes: {},
},
httpRes: {
status: 201,
data: {
data: {
id: '01GW3PHVY0MTCDGS0A1612HARX',
attributes: {}
},
}
},
},
},
{
httpReq: {
url: 'https://a.klaviyo.com/api/profiles',
method: 'POST',
headers: { Authorization: 'Klaviyo-API-Key dummyPrivateApiKeyforfailure' },
},
httpRes: {},
},
{
httpReq: {
url: 'https://a.klaviyo.com/api/profiles',
method: 'POST',
},
httpRes: {
status: 201,
data: {
data: {
id: '01GW3PHVY0MTCDGS0A1612HARX',
attributes: {},
},
}
},
},
},
];

0 comments on commit 2f0f2d0

Please sign in to comment.