Skip to content

Commit

Permalink
test: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
findolor committed Oct 24, 2024
1 parent b878281 commit 0eb8c45
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const mockTradeOrdersList: Trade[] = [
},
},
outputVaultBalanceChange: {
amount: '100',
amount: '-100',
vault: {
id: 'id',
vault_id: 'vault-id',
Expand Down Expand Up @@ -118,7 +118,7 @@ const mockTradeOrdersList: Trade[] = [
},
},
outputVaultBalanceChange: {
amount: '100',
amount: '-100',
vault: {
id: 'id',
vault_id: 'vault-id',
Expand Down Expand Up @@ -207,8 +207,8 @@ test('renders table with correct data', async () => {
BigInt(mockTradeOrdersList[i].outputVaultBalanceChange.amount),
Number(mockTradeOrdersList[i].outputVaultBalanceChange.vault.token.decimals),
);
const ioRatio = Number(inputDisplay) / Number(outputDisplay);
const oiRatio = Number(outputDisplay) / Number(inputDisplay);
const ioRatio = Number(inputDisplay) / (Number(outputDisplay) * -1);
const oiRatio = (Number(outputDisplay) * -1) / Number(inputDisplay);
expect(rows[i]).toHaveTextContent(ioRatio.toString());
expect(rows[i]).toHaveTextContent(oiRatio.toString());
}
Expand Down

0 comments on commit 0eb8c45

Please sign in to comment.