From 1014baf4c42ae833f349f6b1670f7c0e3962b2dd Mon Sep 17 00:00:00 2001 From: gabrielcicero45 Date: Fri, 27 Oct 2023 12:29:50 -0300 Subject: [PATCH] test: Remove WrapperInstance --- .../story/expanded_story/expanded_story_task_spec.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/spec/javascripts/components/story/expanded_story/expanded_story_task_spec.js b/spec/javascripts/components/story/expanded_story/expanded_story_task_spec.js index 4c69b9b86..5d39c8ab6 100644 --- a/spec/javascripts/components/story/expanded_story/expanded_story_task_spec.js +++ b/spec/javascripts/components/story/expanded_story/expanded_story_task_spec.js @@ -20,11 +20,10 @@ describe('', () => { }); const wrapper = mount(); - 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', () => { @@ -59,14 +58,6 @@ describe('', () => { expect(onSaveSpy).toHaveBeenCalledWith(task); }); - - it('calls setState with a empty task', () => { - const { wrapperInstance } = setup(); - - wrapperInstance.onHandleSubmit(); - - expect(wrapperInstance.state.task).toEqual(''); - }); }); });