Commit 6d9568e0 authored by Will Cory's avatar Will Cory

update test

parent 86bdaa07
...@@ -2,7 +2,7 @@ import matchers from '@testing-library/jest-dom/matchers' ...@@ -2,7 +2,7 @@ import matchers from '@testing-library/jest-dom/matchers'
import { cleanup, waitFor } from '@testing-library/react' import { cleanup, waitFor } from '@testing-library/react'
import { renderHook } from '@testing-library/react-hooks' import { renderHook } from '@testing-library/react-hooks'
import { afterEach, expect, test } from 'vitest' import { afterEach, expect, test } from 'vitest'
import { useMintManagerOwner } from './react' import { useMintManagerRead } from './react'
import { configureChains, createConfig, WagmiConfig } from 'wagmi' import { configureChains, createConfig, WagmiConfig } from 'wagmi'
import * as React from 'react' import * as React from 'react'
import { optimism } from 'viem/chains' import { optimism } from 'viem/chains'
...@@ -35,7 +35,8 @@ const blockNumber = BigInt(106806163) ...@@ -35,7 +35,8 @@ const blockNumber = BigInt(106806163)
test('react hooks should work', async () => { test('react hooks should work', async () => {
const hook = renderHook( const hook = renderHook(
() => useMintManagerOwner({ chainId: 10, blockNumber }), () =>
useMintManagerRead({ chainId: 10, blockNumber, functionName: 'owner' }),
{ {
wrapper: ({ children }) => ( wrapper: ({ children }) => (
<WagmiConfig config={config}>{children}</WagmiConfig> <WagmiConfig config={config}>{children}</WagmiConfig>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment