Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
  • Loading branch information
steezeburger committed Jan 11, 2025
1 parent 9267b15 commit c04cc1d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion apps/web/app/config/chainConfigs/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import type { CosmosChains, EvmChainInfo, EvmChains } from "../index";
import type { CosmosChains, EvmChainInfo, EvmChains } from "./types";

export enum FlameNetwork {
LOCAL = "local",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ describe("GenericContractService", () => {
mockAbi,
);

// biome-ignore lint/complexity/useLiteralKeys: testing private method
await service["readContractMethod"](1, "testMethod", []);

expect(mockPublicClient.readContract).toHaveBeenCalledWith({
Expand All @@ -89,7 +88,6 @@ describe("GenericContractService", () => {
);

await expect(
// biome-ignore lint/complexity/useLiteralKeys: testing private method
service["readContractMethod"](1, "testMethod", []),
).rejects.toThrow("No public client available");
});
Expand All @@ -104,7 +102,6 @@ describe("GenericContractService", () => {
mockPublicClient.readContract.mockRejectedValue(new Error(errorMessage));

await expect(
// biome-ignore lint/complexity/useLiteralKeys: testing private method
service["readContractMethod"](1, "testMethod", []),
).rejects.toThrow(errorMessage);
});
Expand All @@ -118,7 +115,6 @@ describe("GenericContractService", () => {
mockAbi,
);

// biome-ignore lint/complexity/useLiteralKeys: testing private method
await service["writeContractMethod"](1, "testMethod", [], 100n);

expect(mockWalletClient.writeContract).toHaveBeenCalledWith({
Expand All @@ -139,7 +135,6 @@ describe("GenericContractService", () => {
);

await expect(
// biome-ignore lint/complexity/useLiteralKeys: testing private method
service["writeContractMethod"](1, "testMethod", []),
).rejects.toThrow("No wallet client available");
});
Expand All @@ -154,7 +149,6 @@ describe("GenericContractService", () => {
mockWalletClient.writeContract.mockRejectedValue(new Error(errorMessage));

await expect(
// biome-ignore lint/complexity/useLiteralKeys: testing private method
service["writeContractMethod"](1, "testMethod", []),
).rejects.toThrow(errorMessage);
});
Expand Down
2 changes: 1 addition & 1 deletion apps/web/jest.setup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jest.mock("@interchain-ui/react/styles", () => ({}), { virtual: true });

// mock cosmos-kit stuff
jest.mock("@cosmos-kit/react", () => ({
// biome-ignore lint/suspicious/noExplicitAny: idc b/c it's for testing
/* eslint-disable @typescript-eslint/no-explicit-any */
ChainProvider: jest.fn(({ children }: { children: any }) => children),
useWalletModal: jest.fn(() => ({
openWalletModal: jest.fn(),
Expand Down

0 comments on commit c04cc1d

Please sign in to comment.