Commit 98e82bbf authored by Illya Klymov's avatar Illya Klymov

Remove incorrect localVue usage

localVue is required only with use method
parent 4372a6c9
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