Skip to content

Commit

Permalink
unused lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
0age committed Dec 11, 2024
1 parent 2d3e15a commit fd713ee
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/__tests__/graphql.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {
graphqlClient,
fetchAndCacheSupportedChains,
getCachedSupportedChains,
startSupportedChainsRefresh,
Expand Down
1 change: 0 additions & 1 deletion src/__tests__/routes/balance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
AccountDeltasResponse,
AccountResponse,
AllResourceLocksResponse,
getCachedSupportedChains,
fetchAndCacheSupportedChains,
SupportedChainsResponse,
} from '../../graphql';
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/utils/graphql-mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function setupGraphQLMocks(): void {
// Override the request method of the GraphQL client
(graphqlClient as any).request = async (
query: string,
variables: Record<string, any>
_variables: Record<string, any>
) => {
requestCallCount++;

Expand Down
9 changes: 3 additions & 6 deletions src/__tests__/validation/allocation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ import {
AccountResponse,
fetchAndCacheSupportedChains,
} from '../../graphql';
import {
setupGraphQLMocks,
mockSupportedChainsResponse,
} from '../utils/graphql-mock';
import { setupGraphQLMocks } from '../utils/graphql-mock';

describe('Allocation Validation', () => {
let db: PGlite;
Expand Down Expand Up @@ -290,7 +287,7 @@ describe('Allocation Validation', () => {
const differentAllocatorId = '999';
(graphqlClient as any).request = async (
document: string | { source: string },
variables?: Record<string, unknown>
_variables?: Record<string, unknown>
): Promise<any> => {
const query = typeof document === 'string' ? document : document.source;
if (query.includes('GetSupportedChains')) {
Expand Down Expand Up @@ -342,7 +339,7 @@ describe('Allocation Validation', () => {
// Override the mock response with empty supported chains
(graphqlClient as any).request = async (
document: string | { source: string },
variables?: Record<string, unknown>
_variables?: Record<string, unknown>
): Promise<any> => {
const query = typeof document === 'string' ? document : document.source;
if (query.includes('GetSupportedChains')) {
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/validation/compact-graphql.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ describe('Compact GraphQL Validation', () => {
// Mock a different allocator ID in the chain config cache
(graphqlClient as any).request = async (
document: string | { source: string },
variables?: Record<string, unknown>
_variables?: Record<string, unknown>
): Promise<any> => {
const query = typeof document === 'string' ? document : document.source;
if (query.includes('GetSupportedChains')) {
Expand Down Expand Up @@ -186,7 +186,7 @@ describe('Compact GraphQL Validation', () => {
// Mock empty supported chains in the chain config cache
(graphqlClient as any).request = async (
document: string | { source: string },
variables?: Record<string, unknown>
_variables?: Record<string, unknown>
): Promise<any> => {
const query = typeof document === 'string' ? document : document.source;
if (query.includes('GetSupportedChains')) {
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/validation/utils/compact-test-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ export function setupGraphQLMocks(): void {

// Override the request method of the GraphQL client
(graphqlClient as any).request = async (
query: string,
variables: Record<string, any>
_query: string,
_variables: Record<string, any>
): Promise<
SupportedChainsResponse & AccountDeltasResponse & AccountResponse
> => {
Expand Down

0 comments on commit fd713ee

Please sign in to comment.