fix: unit tests
This commit is contained in:
parent
08b31ea43e
commit
968ec4f3f8
@ -883,7 +883,7 @@ describe('DealTicket', () => {
|
|||||||
'deal-ticket-error-message-price'
|
'deal-ticket-error-message-price'
|
||||||
);
|
);
|
||||||
expect(errorMessage).toHaveTextContent(
|
expect(errorMessage).toHaveTextContent(
|
||||||
'Price accepts up to 2 decimal places'
|
'Price must be a multiple of 0.01 for this market'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -54,6 +54,7 @@ export const generateFill = (override?: PartialDeep<Trade>) => {
|
|||||||
decimalPlaces: 5,
|
decimalPlaces: 5,
|
||||||
state: MarketState.STATE_ACTIVE,
|
state: MarketState.STATE_ACTIVE,
|
||||||
tradingMode: MarketTradingMode.TRADING_MODE_CONTINUOUS,
|
tradingMode: MarketTradingMode.TRADING_MODE_CONTINUOUS,
|
||||||
|
tickSize: '1',
|
||||||
fees: {
|
fees: {
|
||||||
__typename: 'Fees',
|
__typename: 'Fees',
|
||||||
factors: {
|
factors: {
|
||||||
|
@ -22,7 +22,7 @@ export const generateFundingPayment = (
|
|||||||
decimalPlaces: 5,
|
decimalPlaces: 5,
|
||||||
state: MarketState.STATE_ACTIVE,
|
state: MarketState.STATE_ACTIVE,
|
||||||
tradingMode: MarketTradingMode.TRADING_MODE_CONTINUOUS,
|
tradingMode: MarketTradingMode.TRADING_MODE_CONTINUOUS,
|
||||||
|
tickSize: '1',
|
||||||
fees: {
|
fees: {
|
||||||
__typename: 'Fees',
|
__typename: 'Fees',
|
||||||
factors: {
|
factors: {
|
||||||
|
@ -24,7 +24,7 @@ describe('OrderEditDialog', () => {
|
|||||||
await userEvent.click(submitButton);
|
await userEvent.click(submitButton);
|
||||||
const inputErrorText = within(editOrder).getByTestId('input-error-text');
|
const inputErrorText = within(editOrder).getByTestId('input-error-text');
|
||||||
expect(inputErrorText).toHaveTextContent(
|
expect(inputErrorText).toHaveTextContent(
|
||||||
'Price accepts up to 1 decimal places'
|
'Price must be a multiple of 0.1 for this market'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -140,6 +140,7 @@ describe('WithdrawFormContainer', () => {
|
|||||||
positionDecimalPlaces: 0,
|
positionDecimalPlaces: 0,
|
||||||
state: Types.MarketState.STATE_SUSPENDED,
|
state: Types.MarketState.STATE_SUSPENDED,
|
||||||
tradingMode: Types.MarketTradingMode.TRADING_MODE_MONITORING_AUCTION,
|
tradingMode: Types.MarketTradingMode.TRADING_MODE_MONITORING_AUCTION,
|
||||||
|
tickSize: '1',
|
||||||
fees: {
|
fees: {
|
||||||
__typename: 'Fees',
|
__typename: 'Fees',
|
||||||
factors: {
|
factors: {
|
||||||
|
Loading…
Reference in New Issue
Block a user