Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
88f2fd96
Commit
88f2fd96
authored
Oct 10, 2018
by
George Tsiolis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update boards list selector specs
parent
efe49ae6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
15 deletions
+20
-15
ee/changelogs/unreleased/move-boards-assignees-list-vue-component.yml
...s/unreleased/move-boards-assignees-list-vue-component.yml
+5
-0
ee/spec/javascripts/boards/components/board_list_selector/assignees_list_item_spec.js
...omponents/board_list_selector/assignees_list_item_spec.js
+3
-3
ee/spec/javascripts/boards/components/board_list_selector/board_list_selector_spec.js
...omponents/board_list_selector/board_list_selector_spec.js
+3
-3
ee/spec/javascripts/boards/components/board_list_selector/list_container_spec.js
...rds/components/board_list_selector/list_container_spec.js
+3
-3
ee/spec/javascripts/boards/components/board_list_selector/list_content_spec.js
...oards/components/board_list_selector/list_content_spec.js
+3
-3
ee/spec/javascripts/boards/components/board_list_selector/list_filter_spec.js
...boards/components/board_list_selector/list_filter_spec.js
+3
-3
No files found.
ee/changelogs/unreleased/move-boards-assignees-list-vue-component.yml
0 → 100644
View file @
88f2fd96
---
title
:
Update boards list selector specs
merge_request
:
6266
author
:
George Tsiolis
type
:
other
ee/spec/javascripts/boards/components/board_list_selector/assignees_list_item_spec.js
View file @
88f2fd96
import
Vue
from
'
vue
'
;
import
AssigneesListItem
Component
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
(
AssigneesListItem
Component
);
const
Component
=
Vue
.
extend
(
AssigneesListItem
);
return
mountComponent
(
Component
,
{
item
:
mockAssigneesList
[
0
],
});
};
describe
(
'
AssigneesListItem
Component
'
,
()
=>
{
describe
(
'
AssigneesListItem
'
,
()
=>
{
let
vm
;
beforeEach
(()
=>
{
...
...
ee/spec/javascripts/boards/components/board_list_selector/board_list_selector_spec.js
View file @
88f2fd96
...
...
@@ -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
BoardListSelector
Component
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
(
'
BoardListSelector
Component
'
,
()
=>
{
describe
(
'
BoardListSelector
'
,
()
=>
{
const
dummyEndpoint
=
`
${
TEST_HOST
}
/users.json`
;
const
createComponent
=
()
=>
mountComponent
(
BoardListSelector
Component
,
{
mountComponent
(
BoardListSelector
,
{
listPath
:
dummyEndpoint
,
listType
:
'
assignees
'
,
});
...
...
ee/spec/javascripts/boards/components/board_list_selector/list_container_spec.js
View file @
88f2fd96
import
Vue
from
'
vue
'
;
import
ListContainer
Component
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
(
ListContainer
Component
);
const
Component
=
Vue
.
extend
(
ListContainer
);
return
mountComponent
(
Component
,
{
loading
:
false
,
...
...
@@ -15,7 +15,7 @@ const createComponent = () => {
});
};
describe
(
'
ListContainer
Component
'
,
()
=>
{
describe
(
'
ListContainer
'
,
()
=>
{
let
vm
;
beforeEach
(()
=>
{
...
...
ee/spec/javascripts/boards/components/board_list_selector/list_content_spec.js
View file @
88f2fd96
import
Vue
from
'
vue
'
;
import
ListContent
Component
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
(
ListContent
Component
);
const
Component
=
Vue
.
extend
(
ListContent
);
return
mountComponent
(
Component
,
{
items
:
mockAssigneesList
,
...
...
@@ -14,7 +14,7 @@ const createComponent = () => {
});
};
describe
(
'
ListContent
Component
'
,
()
=>
{
describe
(
'
ListContent
'
,
()
=>
{
let
vm
;
beforeEach
(()
=>
{
...
...
ee/spec/javascripts/boards/components/board_list_selector/list_filter_spec.js
View file @
88f2fd96
import
Vue
from
'
vue
'
;
import
ListFilter
Component
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
(
ListFilter
Component
);
const
Component
=
Vue
.
extend
(
ListFilter
);
return
mountComponent
(
Component
);
};
describe
(
'
ListFilter
Component
'
,
()
=>
{
describe
(
'
ListFilter
'
,
()
=>
{
let
vm
;
beforeEach
(()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment