diff options
Diffstat (limited to 'spec/frontend/analytics/shared/components/metric_tile_spec.js')
-rw-r--r-- | spec/frontend/analytics/shared/components/metric_tile_spec.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/spec/frontend/analytics/shared/components/metric_tile_spec.js b/spec/frontend/analytics/shared/components/metric_tile_spec.js index 980dfad9eb0..9da5ed0fb07 100644 --- a/spec/frontend/analytics/shared/components/metric_tile_spec.js +++ b/spec/frontend/analytics/shared/components/metric_tile_spec.js @@ -2,7 +2,7 @@ import { GlSingleStat } from '@gitlab/ui/dist/charts'; import { shallowMount } from '@vue/test-utils'; import MetricTile from '~/analytics/shared/components/metric_tile.vue'; import MetricPopover from '~/analytics/shared/components/metric_popover.vue'; -import { redirectTo } from '~/lib/utils/url_utility'; +import { redirectTo } from '~/lib/utils/url_utility'; // eslint-disable-line import/no-deprecated jest.mock('~/lib/utils/url_utility'); @@ -21,10 +21,6 @@ describe('MetricTile', () => { const findSingleStat = () => wrapper.findComponent(GlSingleStat); const findPopover = () => wrapper.findComponent(MetricPopover); - afterEach(() => { - wrapper.destroy(); - }); - describe('template', () => { describe('links', () => { it('when the metric has links, it redirects the user on click', () => { @@ -38,7 +34,7 @@ describe('MetricTile', () => { const singleStat = findSingleStat(); singleStat.vm.$emit('click'); - expect(redirectTo).toHaveBeenCalledWith('foo/bar'); + expect(redirectTo).toHaveBeenCalledWith('foo/bar'); // eslint-disable-line import/no-deprecated }); it("when the metric doesn't have links, it won't the user on click", () => { @@ -47,7 +43,7 @@ describe('MetricTile', () => { const singleStat = findSingleStat(); singleStat.vm.$emit('click'); - expect(redirectTo).not.toHaveBeenCalled(); + expect(redirectTo).not.toHaveBeenCalled(); // eslint-disable-line import/no-deprecated }); }); |