diff options
Diffstat (limited to 'spec/frontend/environments/environment_pin_spec.js')
-rw-r--r-- | spec/frontend/environments/environment_pin_spec.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/spec/frontend/environments/environment_pin_spec.js b/spec/frontend/environments/environment_pin_spec.js index 170036b5b00..ee195b41bc8 100644 --- a/spec/frontend/environments/environment_pin_spec.js +++ b/spec/frontend/environments/environment_pin_spec.js @@ -11,10 +11,6 @@ describe('Pin Component', () => { let wrapper; const factory = (options = {}) => { - // This destroys any wrappers created before a nested call to factory reassigns it - if (wrapper && wrapper.destroy) { - wrapper.destroy(); - } wrapper = shallowMount(PinComponent, { ...options, }); @@ -31,10 +27,6 @@ describe('Pin Component', () => { }); }); - afterEach(() => { - wrapper.destroy(); - }); - it('should render the component with descriptive text', () => { expect(wrapper.text()).toBe('Prevent auto-stopping'); }); @@ -64,10 +56,6 @@ describe('Pin Component', () => { }); }); - afterEach(() => { - wrapper.destroy(); - }); - it('should render the component with descriptive text', () => { expect(wrapper.text()).toBe('Prevent auto-stopping'); }); |