1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

test fixes

This commit is contained in:
Matthias Kretschmann 2019-10-25 12:43:25 +02:00
parent 1bf47ce128
commit f14413e34f
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 5 additions and 6 deletions

View File

@ -35,7 +35,7 @@ env:
# start Barge with these versions
- BRIZO_VERSION=v0.4.5
- AQUARIUS_VERSION=v0.3.8
- KEEPER_VERSION=v0.11.1
- KEEPER_VERSION=v0.12.6
- EVENTS_HANDLER_VERSION=v0.1.2
- KEEPER_OWNER_ROLE_ADDRESS="0xe2DD09d719Da89e5a3D0F2549c7E24566e947260"
- FAUCET_TIMESPAN=0

View File

@ -45,7 +45,7 @@
"react-transition-group": "^4.2.1",
"shortid": "^2.2.15",
"truffle-hdwallet-provider": "1.0.14",
"web3": "1.2.0"
"web3": "^1.2.2"
},
"devDependencies": {
"@react-mock/state": "^0.1.8",

View File

@ -1,5 +1,5 @@
import React from 'react'
import { render, wait } from '@testing-library/react'
import { render } from '@testing-library/react'
import useIpfs from './use-ipfs'
export default function TestComponent() {
@ -14,9 +14,8 @@ export default function TestComponent() {
}
describe('use-ipfs', () => {
it('renders without crashing', async () => {
const { container, getByText } = render(<TestComponent />)
it('renders without crashing', () => {
const { container } = render(<TestComponent />)
expect(container.firstChild).toBeInTheDocument()
await wait(() => getByText('Ready'))
})
})