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
e753beec
Commit
e753beec
authored
Nov 28, 2019
by
Marvin Karegyeya
Committed by
Phil Hughes
Nov 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace board service in board card spec.js
parent
b90b96b3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
2 deletions
+21
-2
changelogs/unreleased/Replace-BoardService_in_board_card_spec-js.yml
...unreleased/Replace-BoardService_in_board_card_spec-js.yml
+5
-0
spec/javascripts/boards/board_card_spec.js
spec/javascripts/boards/board_card_spec.js
+2
-2
spec/javascripts/boards/mock_data.js
spec/javascripts/boards/mock_data.js
+14
-0
No files found.
changelogs/unreleased/Replace-BoardService_in_board_card_spec-js.yml
0 → 100644
View file @
e753beec
---
title
:
removes references of BoardService
merge_request
:
20881
author
:
nuwe1
type
:
other
spec/javascripts/boards/board_card_spec.js
View file @
e753beec
...
...
@@ -13,7 +13,7 @@ import '~/boards/models/list';
import
store
from
'
~/boards/stores
'
;
import
boardsStore
from
'
~/boards/stores/boards_store
'
;
import
boardCard
from
'
~/boards/components/board_card.vue
'
;
import
{
listObj
,
boardsMockInterceptor
,
mockBoardService
}
from
'
./mock_data
'
;
import
{
listObj
,
boardsMockInterceptor
,
setMockEndpoints
}
from
'
./mock_data
'
;
describe
(
'
Board card
'
,
()
=>
{
let
vm
;
...
...
@@ -22,8 +22,8 @@ describe('Board card', () => {
beforeEach
(
done
=>
{
mock
=
new
MockAdapter
(
axios
);
mock
.
onAny
().
reply
(
boardsMockInterceptor
);
setMockEndpoints
();
gl
.
boardService
=
mockBoardService
();
boardsStore
.
create
();
boardsStore
.
detail
.
issue
=
{};
...
...
spec/javascripts/boards/mock_data.js
View file @
e753beec
import
BoardService
from
'
~/boards/services/board_service
'
;
import
boardsStore
from
'
~/boards/stores/boards_store
'
;
export
const
setMockEndpoints
=
(
opts
=
{})
=>
{
const
boardsEndpoint
=
opts
.
boardsEndpoint
||
'
/test/issue-boards/-/boards.json
'
;
const
listsEndpoint
=
opts
.
listsEndpoint
||
'
/test/-/boards/1/lists
'
;
const
bulkUpdatePath
=
opts
.
bulkUpdatePath
||
''
;
const
boardId
=
opts
.
boardId
||
'
1
'
;
boardsStore
.
setEndpoints
({
boardsEndpoint
,
listsEndpoint
,
bulkUpdatePath
,
boardId
,
});
};
export
const
boardObj
=
{
id
:
1
,
name
:
'
test
'
,
...
...
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