Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rustam-cb committed Nov 15, 2024
1 parent 49e3e20 commit 5ff47c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/fund/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,4 +186,4 @@ export type OnRampError = {
errorType: 'internal_error' | 'handled_error' | 'network_error';
code?: string;
debugMessage?: string;
}
};
6 changes: 3 additions & 3 deletions src/fund/utils/setupOnrampEventListeners.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('setupOnrampEventListeners', () => {
const eventMetadata: EventMetadata = { eventName: 'success' };

vi.mocked(subscribeToWindowMessage).mock.calls[0][0].onMessage(
eventMetadata,
eventMetadata
);

expect(onSuccess).toHaveBeenCalled();
Expand All @@ -66,7 +66,7 @@ describe('setupOnrampEventListeners', () => {
},
};
vi.mocked(subscribeToWindowMessage).mock.calls[0][0].onMessage(
eventMetadata,
eventMetadata
);

expect(onExit).toHaveBeenCalledWith(eventMetadata.error);
Expand All @@ -84,7 +84,7 @@ describe('setupOnrampEventListeners', () => {

const eventMetadata: EventMetadata = { eventName: 'success' };
vi.mocked(subscribeToWindowMessage).mock.calls[0][0].onMessage(
eventMetadata,
eventMetadata
);

expect(onEvent).toHaveBeenCalledWith(eventMetadata);
Expand Down

0 comments on commit 5ff47c2

Please sign in to comment.