Fix test failure in TeamConnector

This commit is contained in:
Jerko Steiner 2019-04-03 20:36:19 +08:00
parent da6143d1aa
commit 1a47e3e8a6

View File

@ -10,6 +10,10 @@ const test = new TestUtils()
describe('TeamConnector', () => { describe('TeamConnector', () => {
let history: any = {
push: jest.fn(),
}
let teamActions!: Feature.TeamActions let teamActions!: Feature.TeamActions
let http: HTTPClientMock<IAPIDef> let http: HTTPClientMock<IAPIDef>
beforeEach(() => { beforeEach(() => {
@ -58,7 +62,7 @@ describe('TeamConnector', () => {
it('it fetches user teams on render', async () => { it('it fetches user teams on render', async () => {
const {node} = createTestProvider().render({ const {node} = createTestProvider().render({
history: {} as any, history,
location: {} as any, location: {} as any,
match: {} as any, match: {} as any,
}) })
@ -80,7 +84,7 @@ describe('TeamConnector', () => {
}, newTeam) }, newTeam)
const {render, store} = createTestProvider() const {render, store} = createTestProvider()
const {node} = render({ const {node} = render({
history: {} as any, history,
location: {} as any, location: {} as any,
match: {} as any, match: {} as any,
}) })
@ -104,7 +108,7 @@ describe('TeamConnector', () => {
}, error, 400) }, error, 400)
const {render} = createTestProvider() const {render} = createTestProvider()
const {node} = render({ const {node} = render({
history: {} as any, history,
location: {} as any, location: {} as any,
match: {} as any, match: {} as any,
}) })