fix: fixed typescript test error
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow } from 'enzyme';
|
import { shallow } from 'enzyme';
|
||||||
import { TeamMembers, Props } from './TeamMembers';
|
import { TeamMembers, Props, State } from './TeamMembers';
|
||||||
import { TeamMember } from '../../types';
|
import { TeamMember } from '../../types';
|
||||||
import { getMockTeamMember, getMockTeamMembers } from './__mocks__/teamMocks';
|
import { getMockTeamMember, getMockTeamMembers } from './__mocks__/teamMocks';
|
||||||
|
|
||||||
@@ -64,8 +64,9 @@ describe('Functions', () => {
|
|||||||
|
|
||||||
describe('on add user to team', () => {
|
describe('on add user to team', () => {
|
||||||
const { wrapper, instance } = setup();
|
const { wrapper, instance } = setup();
|
||||||
|
const state = wrapper.state() as State;
|
||||||
|
|
||||||
wrapper.state().newTeamMember = {
|
state.newTeamMember = {
|
||||||
id: 1,
|
id: 1,
|
||||||
label: '',
|
label: '',
|
||||||
avatarUrl: '',
|
avatarUrl: '',
|
||||||
|
|||||||
Reference in New Issue
Block a user