Skip to content

Commit

Permalink
Merge pull request #601 from DeXter-on-Radix/fix-buy-sell-panel-slide…
Browse files Browse the repository at this point in the history
…r-tests

Fix buy sell panel slider tests
  • Loading branch information
dcts authored Nov 9, 2024
2 parents 19b2931 + 12f2e97 commit 43a7548
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/app/state/orderInputSlice.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,32 +66,6 @@ describe("OrderInputSlice", () => {
);
});

it("Validation works for zero token1 amount", () => {
store.dispatch(
orderInputSlice.actions.setTokenAmount({
amount: 0,
specifiedToken: SpecifiedToken.TOKEN_1,
})
);
expect(store.getState().orderInput.validationToken1.valid).toBe(false);
expect(store.getState().orderInput.validationToken1.message).toBe(
ErrorMessage.NONZERO_AMOUNT
);
});

it("Validation works for zero token2 amount", () => {
store.dispatch(
orderInputSlice.actions.setTokenAmount({
amount: 0,
specifiedToken: SpecifiedToken.TOKEN_2,
})
);
expect(store.getState().orderInput.validationToken2.valid).toBe(false);
expect(store.getState().orderInput.validationToken2.message).toBe(
ErrorMessage.NONZERO_AMOUNT
);
});

it("Validation works for insufficient balance for token1 on sell order ", () => {
store.dispatch(orderInputSlice.actions.setSide(OrderSide.SELL));
store.dispatch(
Expand Down

0 comments on commit 43a7548

Please sign in to comment.