Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
hardingjam committed Dec 3, 2024
1 parent 6cfe27c commit 0c5ede2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/ui-components/src/__tests__/TanstackOrderQuote.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test('displays order quote data when query is successful', async () => {
{
success: true,
block_number: '0x123',
pair: { pair_name: 'ETH/USDT', input_index: 0, output_index: 1 },
pair: { pairName: 'ETH/USDT', inputIndex: 0, outputIndex: 1 },
data: { maxOutput: '0x158323e942e36d8c', ratio: '0x5b16799fcb6114f7' },
error: undefined,
},
Expand Down Expand Up @@ -48,14 +48,14 @@ test('refreshes the quote when the refresh icon is clicked', async () => {
{
success: true,
block_number: '0x123',
pair: { pair_name: 'ETH/USDT', input_index: 0, output_index: 1 },
pair: { pairName: 'ETH/USDT', inputIndex: 0, outputIndex: 1 },
data: { maxOutput: '0x158323e942e36d8c', ratio: '0x5b16799fcb6114f7' },
error: undefined,
},
{
success: true,
block_number: '0x123',
pair: { pair_name: 'BTC/USDT', input_index: 0, output_index: 1 },
pair: { pairName: 'BTC/USDT', inputIndex: 0, outputIndex: 1 },
data: { maxOutput: '0x54fa82f5c7001dad', ratio: '0x53e0089714d06709' },
error: undefined,
},
Expand Down Expand Up @@ -88,14 +88,14 @@ test('refreshes the quote when the refresh icon is clicked', async () => {
{
success: true,
block_number: '0x123',
pair: { pair_name: 'ETH/USDT', input_index: 0, output_index: 1 },
pair: { pairName: 'ETH/USDT', inputIndex: 0, outputIndex: 1 },
data: { maxOutput: '0x5282713eceeccb5e', ratio: '0x577fe09a8775137c' },
error: undefined,
},
{
success: true,
block_number: '0x123',
pair: { pair_name: 'BTC/USDT', input_index: 0, output_index: 1 },
pair: { pairName: 'BTC/USDT', inputIndex: 0, outputIndex: 1 },
data: { maxOutput: '0x5430775053da5e53', ratio: '0x5a01719c871bb83f' },
error: undefined,
},
Expand Down Expand Up @@ -124,7 +124,7 @@ test('displays error message when query fails', async () => {
{
success: false,
block_number: '0x123',
pair: { pair_name: 'ETH/USDT', input_index: 0, output_index: 1 },
pair: { pairName: 'ETH/USDT', inputIndex: 0, outputIndex: 1 },
data: undefined,
error: 'Network error',
},
Expand Down Expand Up @@ -154,7 +154,7 @@ test('displays zero for price when io ratio is zero', async () => {
{
success: true,
block_number: '0x123',
pair: { pair_name: 'ETH/USDT', input_index: 0, output_index: 1 },
pair: { pairName: 'ETH/USDT', inputIndex: 0, outputIndex: 1 },
data: { maxOutput: '0x158323e942e36d8c', ratio: '0x0' },
error: undefined,
}
Expand Down

0 comments on commit 0c5ede2

Please sign in to comment.