Skip to content

Commit

Permalink
fix mock state without ts-expect-error
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-ai-integration[bot] committed Oct 15, 2024
1 parent b83b95a commit ff535d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/core/Engine.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,13 @@ describe('Engine', () => {
chainId: '0x1',
}),
CurrencyRateController: {
// @ts-expect-error Mock state doesn't match exact CurrencyRateState, but it's sufficient for testing
conversionRate: ethConversionRate,
currentCurrency: 'usd',
nativeCurrency: ticker,
},
usdConversionRate: ethConversionRate, // Adding this property as it's likely required
currencyRates: {}, // Adding an empty object for currency rates
pendingRefreshRates: false, // Adding a default value for pending refresh
} as EngineState['CurrencyRateController'], // Use the full type instead of Partial
};

it('calculates when theres no balances', () => {
Expand Down

0 comments on commit ff535d1

Please sign in to comment.