From 1a47e3e8a68bc2890116a5070c79ca0f37242a44 Mon Sep 17 00:00:00 2001 From: Jerko Steiner Date: Wed, 3 Apr 2019 20:36:19 +0800 Subject: [PATCH] Fix test failure in TeamConnector --- packages/client/src/team/TeamConnector.test.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/client/src/team/TeamConnector.test.tsx b/packages/client/src/team/TeamConnector.test.tsx index 130d26e..f06ce6b 100644 --- a/packages/client/src/team/TeamConnector.test.tsx +++ b/packages/client/src/team/TeamConnector.test.tsx @@ -10,6 +10,10 @@ const test = new TestUtils() describe('TeamConnector', () => { + let history: any = { + push: jest.fn(), + } + let teamActions!: Feature.TeamActions let http: HTTPClientMock beforeEach(() => { @@ -58,7 +62,7 @@ describe('TeamConnector', () => { it('it fetches user teams on render', async () => { const {node} = createTestProvider().render({ - history: {} as any, + history, location: {} as any, match: {} as any, }) @@ -80,7 +84,7 @@ describe('TeamConnector', () => { }, newTeam) const {render, store} = createTestProvider() const {node} = render({ - history: {} as any, + history, location: {} as any, match: {} as any, }) @@ -104,7 +108,7 @@ describe('TeamConnector', () => { }, error, 400) const {render} = createTestProvider() const {node} = render({ - history: {} as any, + history, location: {} as any, match: {} as any, })