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
b5510ac8
Commit
b5510ac8
authored
Aug 30, 2017
by
Simon Knox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make test exports consistent
parent
e3405212
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
27 additions
and
19 deletions
+27
-19
spec/javascripts/boards/board_blank_state_spec.js
spec/javascripts/boards/board_blank_state_spec.js
+2
-1
spec/javascripts/boards/board_card_spec.js
spec/javascripts/boards/board_card_spec.js
+2
-1
spec/javascripts/boards/board_list_spec.js
spec/javascripts/boards/board_list_spec.js
+2
-1
spec/javascripts/boards/board_new_issue_spec.js
spec/javascripts/boards/board_new_issue_spec.js
+2
-1
spec/javascripts/boards/boards_store_spec.js
spec/javascripts/boards/boards_store_spec.js
+2
-2
spec/javascripts/boards/components/board_spec.js
spec/javascripts/boards/components/board_spec.js
+2
-1
spec/javascripts/boards/issue_spec.js
spec/javascripts/boards/issue_spec.js
+2
-1
spec/javascripts/boards/list_spec.js
spec/javascripts/boards/list_spec.js
+2
-1
spec/javascripts/boards/milestone_select_spec.js
spec/javascripts/boards/milestone_select_spec.js
+2
-1
spec/javascripts/boards/mock_data.js
spec/javascripts/boards/mock_data.js
+9
-9
No files found.
spec/javascripts/boards/board_blank_state_spec.js
View file @
b5510ac8
/* global BoardService */
/* global mockBoardService */
import
Vue
from
'
vue
'
;
import
'
~/boards/stores/boards_store
'
;
import
boardBlankState
from
'
~/boards/components/board_blank_state
'
;
import
{
mockBoardService
}
from
'
./mock_data
'
;
import
'
./mock_data
'
;
describe
(
'
Boards blank state
'
,
()
=>
{
let
vm
;
...
...
spec/javascripts/boards/board_card_spec.js
View file @
b5510ac8
...
...
@@ -4,6 +4,7 @@
/* global listObj */
/* global boardsMockInterceptor */
/* global BoardService */
/* global mockBoardService */
import
Vue
from
'
vue
'
;
import
'
~/boards/models/assignee
'
;
...
...
@@ -12,7 +13,7 @@ import '~/boards/models/list';
import
'
~/boards/models/label
'
;
import
'
~/boards/stores/boards_store
'
;
import
boardCard
from
'
~/boards/components/board_card
'
;
import
{
mockBoardService
}
from
'
./mock_data
'
;
import
'
./mock_data
'
;
describe
(
'
Board card
'
,
()
=>
{
let
vm
;
...
...
spec/javascripts/boards/board_list_spec.js
View file @
b5510ac8
...
...
@@ -3,6 +3,7 @@
/* global List */
/* global listObj */
/* global ListIssue */
/* global mockBoardService */
import
Vue
from
'
vue
'
;
import
_
from
'
underscore
'
;
import
Sortable
from
'
vendor/Sortable
'
;
...
...
@@ -12,7 +13,7 @@ import '~/boards/mixins/sortable_default_options';
import
'
~/boards/models/issue
'
;
import
'
~/boards/models/list
'
;
import
'
~/boards/stores/boards_store
'
;
import
{
mockBoardService
}
from
'
./mock_data
'
;
import
'
./mock_data
'
;
window
.
Sortable
=
Sortable
;
...
...
spec/javascripts/boards/board_new_issue_spec.js
View file @
b5510ac8
/* global boardsMockInterceptor */
/* global BoardService */
/* global mockBoardService */
/* global List */
/* global listObj */
...
...
@@ -7,7 +8,7 @@ import Vue from 'vue';
import
boardNewIssue
from
'
~/boards/components/board_new_issue
'
;
import
'
~/boards/models/list
'
;
import
{
mockBoardService
}
from
'
./mock_data
'
;
import
'
./mock_data
'
;
describe
(
'
Issue boards new issue form
'
,
()
=>
{
let
vm
;
...
...
spec/javascripts/boards/boards_store_spec.js
View file @
b5510ac8
...
...
@@ -4,10 +4,10 @@
/* global listObj */
/* global listObjDuplicate */
/* global ListIssue */
/* global mockBoardService */
import
Vue
from
'
vue
'
;
import
Cookies
from
'
js-cookie
'
;
import
'
~/lib/utils/url_utility
'
;
import
'
~/boards/models/issue
'
;
import
'
~/boards/models/label
'
;
...
...
@@ -15,7 +15,7 @@ import '~/boards/models/list';
import
'
~/boards/models/assignee
'
;
import
'
~/boards/services/board_service
'
;
import
'
~/boards/stores/boards_store
'
;
import
{
mockBoardService
}
from
'
./mock_data
'
;
import
'
./mock_data
'
;
describe
(
'
Store
'
,
()
=>
{
beforeEach
(()
=>
{
...
...
spec/javascripts/boards/components/board_spec.js
View file @
b5510ac8
/* global mockBoardService */
import
Vue
from
'
vue
'
;
import
'
~/boards/services/board_service
'
;
import
'
~/boards/components/board
'
;
import
'
~/boards/models/list
'
;
import
{
mockBoardService
}
from
'
../mock_data
'
;
import
'
../mock_data
'
;
describe
(
'
Board component
'
,
()
=>
{
let
vm
;
...
...
spec/javascripts/boards/issue_spec.js
View file @
b5510ac8
/* eslint-disable comma-dangle */
/* global BoardService */
/* global ListIssue */
/* global mockBoardService */
import
Vue
from
'
vue
'
;
import
'
~/lib/utils/url_utility
'
;
...
...
@@ -10,7 +11,7 @@ import '~/boards/models/list';
import
'
~/boards/models/assignee
'
;
import
'
~/boards/services/board_service
'
;
import
'
~/boards/stores/boards_store
'
;
import
{
mockBoardService
}
from
'
./mock_data
'
;
import
'
./mock_data
'
;
describe
(
'
Issue model
'
,
()
=>
{
let
issue
;
...
...
spec/javascripts/boards/list_spec.js
View file @
b5510ac8
/* eslint-disable comma-dangle */
/* global boardsMockInterceptor */
/* global BoardService */
/* global mockBoardService */
/* global List */
/* global ListIssue */
/* global listObj */
...
...
@@ -15,7 +16,7 @@ import '~/boards/models/list';
import
'
~/boards/models/assignee
'
;
import
'
~/boards/services/board_service
'
;
import
'
~/boards/stores/boards_store
'
;
import
{
mockBoardService
}
from
'
./mock_data
'
;
import
'
./mock_data
'
;
describe
(
'
List model
'
,
()
=>
{
let
list
;
...
...
spec/javascripts/boards/milestone_select_spec.js
View file @
b5510ac8
/* global boardsMockInterceptor */
/* global boardObj */
/* global BoardService */
/* global mockBoardService */
import
Vue
from
'
vue
'
;
import
milestoneSelect
from
'
~/boards/components/milestone_select
'
;
import
'
~/boards/services/board_service
'
;
import
'
~/boards/stores/boards_store
'
;
import
{
mockBoardService
}
from
'
./mock_data
'
;
import
'
./mock_data
'
;
describe
(
'
Milestone select component
'
,
()
=>
{
let
selectMilestoneSpy
;
...
...
spec/javascripts/boards/mock_data.js
View file @
b5510ac8
...
...
@@ -68,14 +68,7 @@ const boardsMockInterceptor = (request, next) => {
}));
};
window
.
boardObj
=
boardObj
;
window
.
listObj
=
listObj
;
window
.
listObjDuplicate
=
listObjDuplicate
;
window
.
BoardsMockData
=
BoardsMockData
;
window
.
boardsMockInterceptor
=
boardsMockInterceptor
;
// eslint-disable-next-line import/prefer-default-export
export
function
mockBoardService
(
opts
=
{})
{
const
mockBoardService
=
(
opts
=
{})
=>
{
const
boardsEndpoint
=
opts
.
boardsEndpoint
||
'
/test/issue-boards/board
'
;
const
listsEndpoint
=
opts
.
listsEndpoint
||
'
/test/boards/1
'
;
const
bulkUpdatePath
=
opts
.
bulkUpdatePath
||
''
;
...
...
@@ -87,4 +80,11 @@ export function mockBoardService(opts = {}) {
bulkUpdatePath
,
boardId
,
});
}
};
window
.
boardObj
=
boardObj
;
window
.
listObj
=
listObj
;
window
.
listObjDuplicate
=
listObjDuplicate
;
window
.
BoardsMockData
=
BoardsMockData
;
window
.
boardsMockInterceptor
=
boardsMockInterceptor
;
window
.
mockBoardService
=
mockBoardService
;
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