Skip to content

Commit

Permalink
test: Remove WrapperInstance
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielcicero45 committed Oct 27, 2023
1 parent 2d3d90b commit 1014baf
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ describe('<ExpandedStoryTask />', () => {
});

const wrapper = mount(<ExpandedStoryTask {...defaultProps()} />);
const wrapperInstance = wrapper.instance();
const button = wrapper.find('button');
const input = wrapper.find('input');

return { wrapper, wrapperInstance, button, input };
return { wrapper, button, input };
};

it('renders component title', () => {
Expand Down Expand Up @@ -59,14 +58,6 @@ describe('<ExpandedStoryTask />', () => {

expect(onSaveSpy).toHaveBeenCalledWith(task);
});

it('calls setState with a empty task', () => {
const { wrapperInstance } = setup();

wrapperInstance.onHandleSubmit();

expect(wrapperInstance.state.task).toEqual('');
});
});
});

Expand Down

0 comments on commit 1014baf

Please sign in to comment.