mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
test fixes
This commit is contained in:
parent
1bf47ce128
commit
f14413e34f
@ -35,7 +35,7 @@ env:
|
|||||||
# start Barge with these versions
|
# start Barge with these versions
|
||||||
- BRIZO_VERSION=v0.4.5
|
- BRIZO_VERSION=v0.4.5
|
||||||
- AQUARIUS_VERSION=v0.3.8
|
- AQUARIUS_VERSION=v0.3.8
|
||||||
- KEEPER_VERSION=v0.11.1
|
- KEEPER_VERSION=v0.12.6
|
||||||
- EVENTS_HANDLER_VERSION=v0.1.2
|
- EVENTS_HANDLER_VERSION=v0.1.2
|
||||||
- KEEPER_OWNER_ROLE_ADDRESS="0xe2DD09d719Da89e5a3D0F2549c7E24566e947260"
|
- KEEPER_OWNER_ROLE_ADDRESS="0xe2DD09d719Da89e5a3D0F2549c7E24566e947260"
|
||||||
- FAUCET_TIMESPAN=0
|
- FAUCET_TIMESPAN=0
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
"react-transition-group": "^4.2.1",
|
"react-transition-group": "^4.2.1",
|
||||||
"shortid": "^2.2.15",
|
"shortid": "^2.2.15",
|
||||||
"truffle-hdwallet-provider": "1.0.14",
|
"truffle-hdwallet-provider": "1.0.14",
|
||||||
"web3": "1.2.0"
|
"web3": "^1.2.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@react-mock/state": "^0.1.8",
|
"@react-mock/state": "^0.1.8",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { render, wait } from '@testing-library/react'
|
import { render } from '@testing-library/react'
|
||||||
import useIpfs from './use-ipfs'
|
import useIpfs from './use-ipfs'
|
||||||
|
|
||||||
export default function TestComponent() {
|
export default function TestComponent() {
|
||||||
@ -14,9 +14,8 @@ export default function TestComponent() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
describe('use-ipfs', () => {
|
describe('use-ipfs', () => {
|
||||||
it('renders without crashing', async () => {
|
it('renders without crashing', () => {
|
||||||
const { container, getByText } = render(<TestComponent />)
|
const { container } = render(<TestComponent />)
|
||||||
expect(container.firstChild).toBeInTheDocument()
|
expect(container.firstChild).toBeInTheDocument()
|
||||||
await wait(() => getByText('Ready'))
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user