Skip to content

Commit

Permalink
chore(iqoption): Add getOpenAssets function
Browse files Browse the repository at this point in the history
  • Loading branch information
andredezzy committed Aug 8, 2024
1 parent 3c97368 commit 8fa79c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/iqoption/__tests__/IQOptionProvider.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const mockIqOptionAccount = {
setBalanceMode: jest.fn(),
getActiveProfit: jest.fn(),
isActiveEnabled: jest.fn(),
getOpenAssets: jest.fn(),
placeDigitalOption: jest.fn(),
openBinaryOption: jest.fn(),
getPosition: jest.fn(),
Expand Down Expand Up @@ -69,6 +70,10 @@ jest.mock('../lib/IQOptionAccount', () => ({
return mockIqOptionAccount.isActiveEnabled(...args)
}

getOpenAssets(...args: any[]) {
return mockIqOptionAccount.getOpenAssets(...args)
}

placeDigitalOption(...args: any[]) {
return mockIqOptionAccount.placeDigitalOption(...args)
}
Expand Down

0 comments on commit 8fa79c1

Please sign in to comment.