diff options
Diffstat (limited to 'spec/frontend/jobs/components/job/sidebar_spec.js')
-rw-r--r-- | spec/frontend/jobs/components/job/sidebar_spec.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/frontend/jobs/components/job/sidebar_spec.js b/spec/frontend/jobs/components/job/sidebar_spec.js index aa9ca932023..fbff64b4d78 100644 --- a/spec/frontend/jobs/components/job/sidebar_spec.js +++ b/spec/frontend/jobs/components/job/sidebar_spec.js @@ -48,10 +48,6 @@ describe('Sidebar details block', () => { }); }); - afterEach(() => { - wrapper.destroy(); - }); - describe('without terminal path', () => { it('does not render terminal link', async () => { createWrapper(); @@ -143,7 +139,7 @@ describe('Sidebar details block', () => { return store.dispatch('receiveJobsForStageSuccess', jobsInStage.latest_statuses); }); - it('renders list of jobs', async () => { + it('renders list of jobs', () => { expect(findJobsContainer().exists()).toBe(true); }); }); @@ -151,7 +147,7 @@ describe('Sidebar details block', () => { describe('when job data changes', () => { const stageArg = job.pipeline.details.stages.find((stage) => stage.name === job.stage); - beforeEach(async () => { + beforeEach(() => { jest.spyOn(store, 'dispatch'); }); |