From f14413e34fc8cd9dd5f0903fa0bfc466d993d233 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Fri, 25 Oct 2019 12:43:25 +0200 Subject: [PATCH] test fixes --- .travis.yml | 2 +- client/package.json | 2 +- client/src/hooks/use-ipfs.test.tsx | 7 +++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index c6f1b1a..d4d7775 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/client/package.json b/client/package.json index 2a50414..96cde63 100644 --- a/client/package.json +++ b/client/package.json @@ -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", diff --git a/client/src/hooks/use-ipfs.test.tsx b/client/src/hooks/use-ipfs.test.tsx index a6cc938..ddd2689 100644 --- a/client/src/hooks/use-ipfs.test.tsx +++ b/client/src/hooks/use-ipfs.test.tsx @@ -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() + it('renders without crashing', () => { + const { container } = render() expect(container.firstChild).toBeInTheDocument() - await wait(() => getByText('Ready')) }) })