Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSinclair committed Nov 21, 2024
1 parent 4832161 commit 5860477
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/analytics/__mocks__/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const analyticsV2 = {
screen: jest.fn(),
track: jest.fn(),
setDeviceId: jest.fn(),
setWalletAddressHash: jest.fn(),
setWalletContext: jest.fn(),
enable: jest.fn(),
disable: jest.fn(),
event,
Expand Down
6 changes: 3 additions & 3 deletions src/analytics/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe.skip('@/analytics', () => {
test('track', () => {
const analytics = new Analytics();

analytics.setWalletAddressHash('hash');
analytics.setWalletContext({ walletAddressHash: 'hash', walletType: 'owned' });
analytics.track(analytics.event.pressedButton);

expect(analytics.client.track).toHaveBeenCalledWith(analytics.event.pressedButton, {
Expand All @@ -29,7 +29,7 @@ describe.skip('@/analytics', () => {
test('identify', () => {
const analytics = new Analytics();

analytics.setWalletAddressHash('hash');
analytics.setWalletContext({ walletAddressHash: 'hash', walletType: 'owned' });
analytics.setDeviceId('id');
analytics.identify({ currency: 'USD' });

Expand All @@ -42,7 +42,7 @@ describe.skip('@/analytics', () => {
test('screen', () => {
const analytics = new Analytics();

analytics.setWalletAddressHash('hash');
analytics.setWalletContext({ walletAddressHash: 'hash', walletType: 'owned' });
analytics.screen(Routes.BACKUP_SHEET);

expect(analytics.client.screen).toHaveBeenCalledWith(Routes.BACKUP_SHEET, {
Expand Down
2 changes: 1 addition & 1 deletion src/analytics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class Analytics {
}

/**
* Set `walletAddressHash` for use in events. This DOES NOT call
* Set `walletAddressHash` and `walletType` for use in events. This DOES NOT call
* `identify()`, you must do that on your own.
*/
setWalletContext(walletContext: WalletContext) {
Expand Down

0 comments on commit 5860477

Please sign in to comment.