Commit f0396ba2 authored by Filipa Lacerda's avatar Filipa Lacerda

Merge branch 'move-boards-assignees-list-vue-component' into 'master'

Update boards list selector specs

See merge request gitlab-org/gitlab-ee!6266
parents d70488b0 88f2fd96
---
title: Update boards list selector specs
merge_request: 6266
author: George Tsiolis
type: other
import Vue from 'vue';
import AssigneesListItemComponent from 'ee/boards/components/boards_list_selector/assignees_list_item.vue';
import AssigneesListItem from 'ee/boards/components/boards_list_selector/assignees_list_item.vue';
import mountComponent from 'spec/helpers/vue_mount_component_helper';
import { mockAssigneesList } from 'spec/boards/mock_data';
const createComponent = () => {
const Component = Vue.extend(AssigneesListItemComponent);
const Component = Vue.extend(AssigneesListItem);
return mountComponent(Component, {
item: mockAssigneesList[0],
});
};
describe('AssigneesListItemComponent', () => {
describe('AssigneesListItem', () => {
let vm;
beforeEach(() => {
......
......@@ -2,18 +2,18 @@ import boardsStore from '~/boards/stores/boards_store';
import MockAdapter from 'axios-mock-adapter';
import axios from '~/lib/utils/axios_utils';
import BoardListSelectorComponent from 'ee/boards/components/boards_list_selector/';
import BoardListSelector from 'ee/boards/components/boards_list_selector/';
import mountComponent from 'spec/helpers/vue_mount_component_helper';
import { mockAssigneesList } from 'spec/boards/mock_data';
import { TEST_HOST } from 'spec/test_constants';
describe('BoardListSelectorComponent', () => {
describe('BoardListSelector', () => {
const dummyEndpoint = `${TEST_HOST}/users.json`;
const createComponent = () =>
mountComponent(BoardListSelectorComponent, {
mountComponent(BoardListSelector, {
listPath: dummyEndpoint,
listType: 'assignees',
});
......
import Vue from 'vue';
import ListContainerComponent from 'ee/boards/components/boards_list_selector/list_container.vue';
import ListContainer from 'ee/boards/components/boards_list_selector/list_container.vue';
import mountComponent from 'spec/helpers/vue_mount_component_helper';
import { mockAssigneesList } from 'spec/boards/mock_data';
const createComponent = () => {
const Component = Vue.extend(ListContainerComponent);
const Component = Vue.extend(ListContainer);
return mountComponent(Component, {
loading: false,
......@@ -15,7 +15,7 @@ const createComponent = () => {
});
};
describe('ListContainerComponent', () => {
describe('ListContainer', () => {
let vm;
beforeEach(() => {
......
import Vue from 'vue';
import ListContentComponent from 'ee/boards/components/boards_list_selector/list_content.vue';
import ListContent from 'ee/boards/components/boards_list_selector/list_content.vue';
import mountComponent from 'spec/helpers/vue_mount_component_helper';
import { mockAssigneesList } from 'spec/boards/mock_data';
const createComponent = () => {
const Component = Vue.extend(ListContentComponent);
const Component = Vue.extend(ListContent);
return mountComponent(Component, {
items: mockAssigneesList,
......@@ -14,7 +14,7 @@ const createComponent = () => {
});
};
describe('ListContentComponent', () => {
describe('ListContent', () => {
let vm;
beforeEach(() => {
......
import Vue from 'vue';
import ListFilterComponent from 'ee/boards/components/boards_list_selector/list_filter.vue';
import ListFilter from 'ee/boards/components/boards_list_selector/list_filter.vue';
import mountComponent from 'spec/helpers/vue_mount_component_helper';
const createComponent = () => {
const Component = Vue.extend(ListFilterComponent);
const Component = Vue.extend(ListFilter);
return mountComponent(Component);
};
describe('ListFilterComponent', () => {
describe('ListFilter', () => {
let vm;
beforeEach(() => {
......
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