// import { useContracts } from "./useContracts"; // import { renderHook } from "@testing-library/react-hooks"; // import { useWeb3Provider } from "../useWeb3Provider/useWeb3Provider"; // import { ethers } from "ethers"; // // // class MockProvider extends ethers.providers.BaseProvider { // // perform(method, params) { // // if (method === "getBlockNumber") { // // return 1337; // // } // // return super.perform(method, params); // // } // // } // // jest.mock("../useWeb3Provider/useWeb3Provider", () => ({ // useWeb3Provider: jest.fn(), // })); // describe("useContracts", () => { it('should return true', () => { expect(true).toBeTruthy(); }); }); // const env = process.env; // // it("should throw an error when the contract has not been initialized", () => { // (useWeb3Provider as jest.Mock).mockReturnValue({ // signer: undefined, // }); // // const renderUndefined = () => useContracts(); // // expect(renderUndefined).toThrow(); // }); // // it("should return the initialized contract if it exists", () => { // jest.resetModules(); // process.env = { // REACT_APP_RELIQUARY_CONTRACT_ADDRESS: "ADDRESS_1", // REACT_APP_DEPOSIT_HELPER_CONTRACT_ADDRESS: "ADDRESS_2", // }; // // const provider = new ethers.providers.JsonRpcProvider(); // // (useWeb3Provider as jest.Mock).mockReturnValue({ // signer: provider.getSigner(), // }); // // const reliquary = renderHook(() => useContracts()); // // expect(reliquary.result.current).toBeTruthy(); // // process.env = env; // }); // });