Commit 712bf231 authored by Martin Wortschack's avatar Martin Wortschack

Merge branch 'xanf-remove-localVue-121591' into 'master'

Remove incorrect localVue usage in ee/spec/frontend/analytics/productivity_analytics

Closes #121591

See merge request gitlab-org/gitlab!22592
parents 3c395dda 98e82bbf
import { createLocalVue, shallowMount } from '@vue/test-utils'; import { shallowMount } from '@vue/test-utils';
import MetricColumn from 'ee/analytics/productivity_analytics/components/metric_column.vue'; import MetricColumn from 'ee/analytics/productivity_analytics/components/metric_column.vue';
describe('MetricColumn component', () => { describe('MetricColumn component', () => {
...@@ -11,10 +11,7 @@ describe('MetricColumn component', () => { ...@@ -11,10 +11,7 @@ describe('MetricColumn component', () => {
}; };
const factory = (props = defaultProps) => { const factory = (props = defaultProps) => {
const localVue = createLocalVue(); wrapper = shallowMount(MetricColumn, {
wrapper = shallowMount(localVue.extend(MetricColumn), {
localVue,
sync: false, sync: false,
propsData: { ...props }, propsData: { ...props },
}); });
......
import { createLocalVue, shallowMount } from '@vue/test-utils'; import { shallowMount } from '@vue/test-utils';
import MergeRequestTableRow from 'ee/analytics/productivity_analytics/components/mr_table_row.vue'; import MergeRequestTableRow from 'ee/analytics/productivity_analytics/components/mr_table_row.vue';
import MetricColumn from 'ee/analytics/productivity_analytics/components/metric_column.vue'; import MetricColumn from 'ee/analytics/productivity_analytics/components/metric_column.vue';
import { GlAvatar } from '@gitlab/ui'; import { GlAvatar } from '@gitlab/ui';
...@@ -14,10 +14,7 @@ describe('MergeRequestTableRow component', () => { ...@@ -14,10 +14,7 @@ describe('MergeRequestTableRow component', () => {
}; };
const factory = (props = defaultProps) => { const factory = (props = defaultProps) => {
const localVue = createLocalVue(); wrapper = shallowMount(MergeRequestTableRow, {
wrapper = shallowMount(localVue.extend(MergeRequestTableRow), {
localVue,
sync: false, sync: false,
propsData: { ...props }, propsData: { ...props },
}); });
......
import { createLocalVue, shallowMount } from '@vue/test-utils'; import { shallowMount } from '@vue/test-utils';
import MergeRequestTable from 'ee/analytics/productivity_analytics/components/mr_table.vue'; import MergeRequestTable from 'ee/analytics/productivity_analytics/components/mr_table.vue';
import MergeRequestTableRow from 'ee/analytics/productivity_analytics/components/mr_table_row.vue'; import MergeRequestTableRow from 'ee/analytics/productivity_analytics/components/mr_table_row.vue';
import { GlDropdown, GlDropdownItem } from '@gitlab/ui'; import { GlDropdown, GlDropdownItem } from '@gitlab/ui';
...@@ -20,10 +20,7 @@ describe('MergeRequestTable component', () => { ...@@ -20,10 +20,7 @@ describe('MergeRequestTable component', () => {
}; };
const factory = (props = defaultProps) => { const factory = (props = defaultProps) => {
const localVue = createLocalVue(); wrapper = shallowMount(MergeRequestTable, {
wrapper = shallowMount(localVue.extend(MergeRequestTable), {
localVue,
sync: false, sync: false,
propsData: { ...props }, propsData: { ...props },
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment