Skip to content

Commit

Permalink
test: fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alfetopito committed Jan 16, 2025
1 parent 4a5b08f commit 4110b34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import { tradeFlow } from 'modules/limitOrders/services/tradeFlow'
import { PriceImpactDeclineError, TradeFlowContext } from 'modules/limitOrders/services/types'
import { LimitOrdersSettingsState } from 'modules/limitOrders/state/limitOrdersSettingsAtom'
import { partiallyFillableOverrideAtom } from 'modules/limitOrders/state/partiallyFillableOverride'
import { useNavigateToAllOrdersTable } from 'modules/ordersTable'
import { useCloseReceiptModal } from 'modules/ordersTable/containers/OrdersReceiptModal/hooks'
import { useNavigateToAllOrdersTable } from 'modules/ordersTable/hooks/useNavigateToAllOrdersTable'
import { TradeConfirmActions } from 'modules/trade/hooks/useTradeConfirmActions'
import { useAlternativeOrder, useHideAlternativeOrderModal } from 'modules/trade/state/alternativeOrder'
import { getSwapErrorMessage } from 'modules/trade/utils/swapErrorHelper'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ describe('getOrderStatusTitleAndColor()', () => {
when(orderMock.isCancelling).thenReturn(true)
const result = getResult()
expect(result.title).toBe('Cancelling...')
expect(result.color).toBe(`var(${UI.COLOR_TEXT})`)
expect(result.background).toBe(`var(${UI.COLOR_TEXT_OPACITY_10})`)
expect(result.color).toBe(`var(${UI.COLOR_DANGER_TEXT})`)
expect(result.background).toBe(`var(${UI.COLOR_DANGER_BG})`)
})

it('should return correct title and colors for a cancelled order', () => {
Expand Down

0 comments on commit 4110b34

Please sign in to comment.