Skip to content

Commit

Permalink
Fixed breaking test on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrwitek committed Jul 12, 2024
1 parent 6a61c12 commit 6539bc9
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions sdk/sdk-e2e/tests/earnProtocol.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import assert from 'assert'
import { isAddress } from 'viem/utils'

import { makeSDK, type Chain, type UserClient } from '@summerfi/sdk-client'
import { makeSDK, type Chain, type SDKManager, type UserClient } from '@summerfi/sdk-client'
import { TokenAmount, Address, ChainFamilyMap } from '@summerfi/sdk-common'

import { USDC, DAI } from './utils/TokenMockBase'
Expand All @@ -20,17 +20,21 @@ const config = {
}

describe.skip('Earn Protocol Deposit', () => {
// SDK
if (!config.SDKApiUrl) {
throw new Error('Invalid E2E_SDK_API_URL')
}
const sdk = makeSDK({
apiURL: config.SDKApiUrl,
})
const chainInfo = ChainFamilyMap.Base.Mainnet
let sdk: SDKManager
let chain: Chain
let user: UserClient

beforeAll(async () => {
// SDK
if (!config.SDKApiUrl) {
throw new Error('Invalid E2E_SDK_API_URL')
}
sdk = makeSDK({
apiURL: config.SDKApiUrl,
})
})

beforeEach(async () => {
// Chain
const maybeChain = await sdk.chains.getChain({
Expand Down

0 comments on commit 6539bc9

Please sign in to comment.