Commit 98dacead by Torkel Ödegaard

fix: fixed typescript test error

parent dd01abc5
import React from 'react';
import { shallow } from 'enzyme';
import { TeamMembers, Props } from './TeamMembers';
import { TeamMembers, Props, State } from './TeamMembers';
import { TeamMember } from '../../types';
import { getMockTeamMember, getMockTeamMembers } from './__mocks__/teamMocks';
......@@ -64,8 +64,9 @@ describe('Functions', () => {
describe('on add user to team', () => {
const { wrapper, instance } = setup();
const state = wrapper.state() as State;
wrapper.state().newTeamMember = {
state.newTeamMember = {
id: 1,
label: '',
avatarUrl: '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment