Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
z4o4z committed Sep 3, 2021
1 parent c2a8229 commit 64d1b86
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/api-sdk/tests/resources/analytics.unit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ describe('Analytics', () => {
await analytics.track('Event 2', { properties: { id: 'id', value: 10 }, hashed: ['id'] });

expect(fetch.post.args).to.eql([
['analytics/track', { event: 'Event', hashed: undefined, properties: {}, teamhashed: undefined }],
['analytics/track', { event: 'Event 2', hashed: ['id'], properties: { id: 'id', value: 10 }, teamhashed: undefined }],
['analytics/track', { event: 'Event', envIDs: undefined, hashed: undefined, properties: {}, teamhashed: undefined }],
['analytics/track', { event: 'Event 2', hashed: ['id'], properties: { id: 'id', value: 10 }, teamhashed: undefined, envIDs: undefined }],
]);
});

Expand All @@ -49,7 +49,9 @@ describe('Analytics', () => {

await analytics.identify({ traits: { id: 'id', value: 10 }, teamhashed: ['id'] });

expect(fetch.post.args).to.eql([['analytics/identify', { teamhashed: ['id'], traits: { id: 'id', value: 10 }, hashed: undefined }]]);
expect(fetch.post.args).to.eql([
['analytics/identify', { teamhashed: ['id'], traits: { id: 'id', value: 10 }, envIDs: undefined, hashed: undefined }],
]);
});

it('.identifyWorkspace', async () => {
Expand Down

0 comments on commit 64d1b86

Please sign in to comment.