Skip to content

Commit

Permalink
Update sdk mock to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
avclarke committed Jul 7, 2023
1 parent ed37116 commit 4ac3dc0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/app/src/state/__mocks__/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ export const mockSetSigner = () => Promise.resolve()
export const mockSubmitCrossMarginOrder = jest.fn(() => ({ test: 'THE TX' }))

const mockFuturesService = {
getCrossMarginAccounts: () => ['0x7bCe4eF9d95129011528E502357C7772'],
getSmartMarginAccounts: () => ['0x7bCe4eF9d95129011528E502357C7772'],
getPreviousDayPrices: () => [],
getCrossMarginTradePreview: () => {
getSmartMarginTradePreview: () => {
return { ...MOCK_TRADE_PREVIEW }
},
getFuturesPositions: () => [],
Expand All @@ -18,8 +18,8 @@ const mockFuturesService = {
getConditionalOrders: () => [],
getIsolatedMarginTransfers: () => [],
getDelayedOrders: () => [],
getCrossMarginTransfers: () => [],
getCrossMarginBalanceInfo: () => ({
getSmartMarginTransfers: () => [],
getSmartMarginBalanceInfo: () => ({
freeMargin: wei('1000'),
keeperEthBal: wei('0.1'),
walletEthBal: wei('1'),
Expand All @@ -40,6 +40,7 @@ const mockSdk = {
transactions: {},
kwentaToken: {},
system: {},
perpsV3: { getMarkets: () => [] },
setProvider: mockSetProvider,
setSigner: mockSetSigner,
}
Expand Down

0 comments on commit 4ac3dc0

Please sign in to comment.