fixed accounts build errors and unit tests
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import AccountsTable from './accounts-table';
|
||||
import { act, render, screen, waitFor } from '@testing-library/react';
|
||||
import type { AccountFieldsFragment } from './__generated__/Accounts';
|
||||
import { AccountType } from '@vegaprotocol/types';
|
||||
import type { AccountFieldsFragment } from './__generated___/Accounts';
|
||||
import { Schema as Types } from '@vegaprotocol/types';
|
||||
|
||||
const singleRow: AccountFieldsFragment = {
|
||||
__typename: 'Account',
|
||||
type: AccountType.ACCOUNT_TYPE_MARGIN,
|
||||
type: Types.AccountType.ACCOUNT_TYPE_MARGIN,
|
||||
balance: '125600000',
|
||||
market: {
|
||||
__typename: 'Market',
|
||||
|
||||
@@ -13,6 +13,7 @@ export enum AccountTypeMapping {
|
||||
ACCOUNT_TYPE_REWARD_LP_RECEIVED_FEES = 'Reward LP received fees',
|
||||
ACCOUNT_TYPE_REWARD_MAKER_RECEIVED_FEES = 'Reward Maker received fees',
|
||||
ACCOUNT_TYPE_REWARD_MARKET_PROPOSERS = 'Reward Market Proposers',
|
||||
ACCOUNT_TYPE_REWARD_MAKER_PAID_FEES = 'Reward Maker paid fees',
|
||||
ACCOUNT_TYPE_REWARD_TAKER_PAID_FEES = 'Reward Taker paid fees',
|
||||
ACCOUNT_TYPE_SETTLEMENT = 'Settlement',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user