From d3d1dd35eddb81d49d29106e864d8975e4cdba5f Mon Sep 17 00:00:00 2001 From: sam-keen Date: Wed, 17 May 2023 12:48:12 +0100 Subject: [PATCH] fix(3572): updated tests --- .../epoch-individual-rewards-table.spec.tsx | 6 ++++-- .../epoch-total-rewards/epoch-total-rewards-table.spec.tsx | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/apps/governance/src/routes/rewards/epoch-individual-rewards/epoch-individual-rewards-table.spec.tsx b/apps/governance/src/routes/rewards/epoch-individual-rewards/epoch-individual-rewards-table.spec.tsx index 3e34d05ca..f3bcc17ad 100644 --- a/apps/governance/src/routes/rewards/epoch-individual-rewards/epoch-individual-rewards-table.spec.tsx +++ b/apps/governance/src/routes/rewards/epoch-individual-rewards/epoch-individual-rewards-table.spec.tsx @@ -25,7 +25,7 @@ const mockData = { amount: '0', percentageOfTotal: '0', }, - ACCOUNT_TYPE_FEES_LIQUIDITY: { + ACCOUNT_TYPE_REWARD_LP_RECEIVED_FEES: { amount: '0', percentageOfTotal: '0', }, @@ -55,7 +55,9 @@ describe('EpochIndividualRewardsTable', () => { expect( getByTestId('ACCOUNT_TYPE_REWARD_MAKER_RECEIVED_FEES') ).toBeInTheDocument(); - expect(getByTestId('ACCOUNT_TYPE_FEES_LIQUIDITY')).toBeInTheDocument(); + expect( + getByTestId('ACCOUNT_TYPE_REWARD_LP_RECEIVED_FEES') + ).toBeInTheDocument(); expect( getByTestId('ACCOUNT_TYPE_REWARD_MARKET_PROPOSERS') ).toBeInTheDocument(); diff --git a/apps/governance/src/routes/rewards/epoch-total-rewards/epoch-total-rewards-table.spec.tsx b/apps/governance/src/routes/rewards/epoch-total-rewards/epoch-total-rewards-table.spec.tsx index b06f6a42d..030bca178 100644 --- a/apps/governance/src/routes/rewards/epoch-total-rewards/epoch-total-rewards-table.spec.tsx +++ b/apps/governance/src/routes/rewards/epoch-total-rewards/epoch-total-rewards-table.spec.tsx @@ -29,7 +29,7 @@ const rewardsList = [ amount: '0', }, { - rewardType: AccountType.ACCOUNT_TYPE_FEES_LIQUIDITY, + rewardType: AccountType.ACCOUNT_TYPE_REWARD_LP_RECEIVED_FEES, amount: '0', }, { @@ -78,7 +78,9 @@ describe('EpochTotalRewardsTable', () => { expect( getByTestId('ACCOUNT_TYPE_REWARD_MAKER_RECEIVED_FEES') ).toBeInTheDocument(); - expect(getByTestId('ACCOUNT_TYPE_FEES_LIQUIDITY')).toBeInTheDocument(); + expect( + getByTestId('ACCOUNT_TYPE_REWARD_LP_RECEIVED_FEES') + ).toBeInTheDocument(); expect( getByTestId('ACCOUNT_TYPE_REWARD_MARKET_PROPOSERS') ).toBeInTheDocument();