Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
gthoma17 committed Dec 8, 2021
1 parent 68e83f6 commit a8a1b5e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/Pages/LeaderboardPage/Cards/Top10AccountsCard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('Top10AccountsCard', () => {
const cardBody = table!.tBodies.item(0)!
expect(cardBody.rows).toHaveLength(1)
expect(cardBody.rows[0].cells[0].textContent).toEqual('1')
expect(cardBody.rows[0].cells[1].textContent).toEqual('0000000000000000000000000B1E55ED')
expect(cardBody.rows[0].cells[1].textContent).toEqual('0000000000000000000000000b1e55ed')
expect(cardBody.rows[0].cells[2].textContent).toEqual('54321')
})
it('should link to the corresponding accounts', async () => {
Expand All @@ -59,7 +59,7 @@ describe('Top10AccountsCard', () => {
expect(transactionCell).toBeInTheDocument()
const transactionLink: HTMLAnchorElement | null = transactionCell!.querySelector('a')
expect(transactionLink).toBeInTheDocument()
expect(transactionLink!.href).toMatch('http://localhost/address/0000000000000000000010000B1E55ED')
expect(transactionLink!.href).toMatch('http://localhost/address/0000000000000000000010000b1e55ed')
})
it('should render the data in the order provided by the API', async () => {
await renderSubject([
Expand All @@ -76,8 +76,8 @@ describe('Top10AccountsCard', () => {
const table: HTMLTableElement = screen.queryByTestId('top-10-accounts')!.querySelector('table')!
const cardBody = table.tBodies.item(0)!
expect(cardBody!.rows).toHaveLength(2)
expect(cardBody!.rows[0].cells[1].textContent).toEqual('0000000000000000000000000B0E55ED')
expect(cardBody!.rows[1].cells[1].textContent).toEqual('0000000000000000000000000B1E552D')
expect(cardBody!.rows[0].cells[1].textContent).toEqual('0000000000000000000000000b0e55ed')
expect(cardBody!.rows[1].cells[1].textContent).toEqual('0000000000000000000000000b1e552d')
})
it('should query the Analytics API correctly', async () => {
await renderSubject()
Expand Down
7 changes: 4 additions & 3 deletions src/api_clients/AnalyticsQueries.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
GraphQLTypes,
/* eslint-disable camelase */
/* eslint-disable camelcase */
order_by,
} from '../../utils/Analytics_Hasura_Api_Zeus_Client/zeus'
import moment from 'moment'
Expand Down Expand Up @@ -225,9 +225,10 @@ export function transactionsBySenderAddressQuery(senderAddress: string) {
}
}

// eslint-disable-next-line camelcase
export type CurrencyInCirculationPageQueryType = {
// eslint-disable-next-line camelcase
diem_in_circulation_realtime_aggregates:
// eslint-disable-next-line camelcase
| [{ currency: string; total_net_value: number; timestamp: string }]
| []
}
Expand Down Expand Up @@ -288,8 +289,8 @@ export function top10Transactions(currency: KnownCurrency) {
}
}

// eslint-disable-next-line camelcase
export type DiemInCirculationHistoryType = {
// eslint-disable-next-line camelcase
diem_in_circulation_dynamic: { timestamp: string; total_net: number }[]
}
export function diemInCirculationHistoryQuery(currency: KnownCurrency) {
Expand Down

0 comments on commit a8a1b5e

Please sign in to comment.