Skip to content

Commit

Permalink
chore: add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
anantjain45823 committed Jun 17, 2024
1 parent 1c77b6e commit ac2bda8
Show file tree
Hide file tree
Showing 5 changed files with 1,777 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
export const destination = {
Config: {
appId: 'random-818c-4a28-b98e-6cd8a994eb22',
emailDeviceType: true,
smsDeviceType: true,
eventAsTags: false,
allowedProperties: [
{ propertyName: 'brand' },
{ propertyName: 'firstName' },
{ propertyName: 'price' },
],
version: 'V2',
},
};

export const endpoint = 'https://api.onesignal.com/apps/random-818c-4a28-b98e-6cd8a994eb22/users';

export const headers = { Accept: 'application/json', 'Content-Type': 'application/json' };

export const commonTraits = {
brand: 'John Players',
price: '15000',
firstName: 'Test',
userId: 'user@27',
};
export const commonTags = {
brand: 'John Players',
price: '15000',
firstName: 'Test',
userId: 'user@27',
anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35',
};

export const commonProperties = {
products: [
{
sku: 3,
iso: 'iso',
quantity: 2,
amount: 100,
},
],
brand: 'John Players',
price: '15000',
firstName: 'Test',
customKey: 'customVal',
};
2 changes: 2 additions & 0 deletions test/integrations/destinations/one_signal/processor/data.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { data_v2 } from './data_v2';
export const data = [
{
name: 'one_signal',
Expand Down Expand Up @@ -1542,4 +1543,5 @@ export const data = [
},
},
},
...data_v2,
];
Loading

0 comments on commit ac2bda8

Please sign in to comment.