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
85834b64
Commit
85834b64
authored
Apr 27, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip ci] fix karma specs
parent
52cff35e
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
46 additions
and
43 deletions
+46
-43
app/assets/javascripts/boards/components/board_new_issue.js
app/assets/javascripts/boards/components/board_new_issue.js
+1
-0
spec/javascripts/boards/boards_store_spec.js
spec/javascripts/boards/boards_store_spec.js
+10
-9
spec/javascripts/boards/issue_card_spec.js
spec/javascripts/boards/issue_card_spec.js
+12
-12
spec/javascripts/boards/issue_spec.js
spec/javascripts/boards/issue_spec.js
+8
-8
spec/javascripts/boards/list_spec.js
spec/javascripts/boards/list_spec.js
+8
-8
spec/javascripts/boards/mock_data.js
spec/javascripts/boards/mock_data.js
+2
-1
spec/javascripts/boards/modal_store_spec.js
spec/javascripts/boards/modal_store_spec.js
+5
-5
No files found.
app/assets/javascripts/boards/components/board_new_issue.js
View file @
85834b64
...
...
@@ -24,6 +24,7 @@ export default {
title
:
this
.
title
,
labels
,
subscribed
:
true
,
assignees
:
[],
});
if
(
Store
.
state
.
currentBoard
)
{
...
...
spec/javascripts/boards/boards_store_spec.js
View file @
85834b64
...
...
@@ -8,14 +8,14 @@
import
Vue
from
'
vue
'
;
import
Cookies
from
'
js-cookie
'
;
require
(
'
~/lib/utils/url_utility
'
)
;
require
(
'
~/boards/models/issue
'
)
;
require
(
'
~/boards/models/label
'
)
;
require
(
'
~/boards/models/list
'
)
;
require
(
'
~/boards/models/user
'
)
;
require
(
'
~/boards/services/board_service
'
)
;
require
(
'
~/boards/stores/boards_store
'
)
;
require
(
'
./mock_data
'
)
;
import
'
~/lib/utils/url_utility
'
;
import
'
~/boards/models/issue
'
;
import
'
~/boards/models/label
'
;
import
'
~/boards/models/list
'
;
import
'
~/boards/models/assignee
'
;
import
'
~/boards/services/board_service
'
;
import
'
~/boards/stores/boards_store
'
;
import
'
./mock_data
'
;
describe
(
'
Store
'
,
()
=>
{
beforeEach
(()
=>
{
...
...
@@ -212,7 +212,8 @@ describe('Store', () => {
title
:
'
Testing
'
,
iid
:
2
,
confidential
:
false
,
labels
:
[]
labels
:
[],
assignees
:
[],
});
const
list
=
gl
.
issueBoards
.
BoardsStore
.
addList
(
listObj
);
...
...
spec/javascripts/boards/issue_card_spec.js
View file @
85834b64
...
...
@@ -5,13 +5,13 @@
import
Vue
from
'
vue
'
;
require
(
'
~/boards/models/issue
'
)
;
require
(
'
~/boards/models/label
'
)
;
require
(
'
~/boards/models/list
'
)
;
require
(
'
~/boards/models/user
'
)
;
require
(
'
~/boards/stores/boards_store
'
)
;
require
(
'
~/boards/components/issue_card_inner
'
)
;
require
(
'
./mock_data
'
)
;
import
'
~/boards/models/issue
'
;
import
'
~/boards/models/label
'
;
import
'
~/boards/models/list
'
;
import
'
~/boards/models/assignee
'
;
import
'
~/boards/stores/boards_store
'
;
import
'
~/boards/components/issue_card_inner
'
;
import
'
./mock_data
'
;
describe
(
'
Issue card component
'
,
()
=>
{
const
user
=
new
ListAssignee
({
...
...
@@ -151,19 +151,19 @@ describe('Issue card component', () => {
beforeEach
((
done
)
=>
{
component
.
issue
.
assignees
=
[
user
,
new
List
User
({
new
List
Assignee
({
id
:
2
,
name
:
'
user2
'
,
username
:
'
user2
'
,
avatar
:
'
test_image
'
,
}),
new
List
User
({
new
List
Assignee
({
id
:
3
,
name
:
'
user3
'
,
username
:
'
user3
'
,
avatar
:
'
test_image
'
,
}),
new
List
User
({
new
List
Assignee
({
id
:
4
,
name
:
'
user4
'
,
username
:
'
user4
'
,
...
...
@@ -180,7 +180,7 @@ describe('Issue card component', () => {
describe
(
'
more than four assignees
'
,
()
=>
{
beforeEach
((
done
)
=>
{
component
.
issue
.
assignees
.
push
(
new
List
User
({
component
.
issue
.
assignees
.
push
(
new
List
Assignee
({
id
:
5
,
name
:
'
user5
'
,
username
:
'
user5
'
,
...
...
@@ -200,7 +200,7 @@ describe('Issue card component', () => {
it
(
'
renders 99+ avatar counter
'
,
(
done
)
=>
{
for
(
let
i
=
5
;
i
<
104
;
i
++
)
{
const
u
=
new
List
User
({
const
u
=
new
List
Assignee
({
id
:
i
,
name
:
'
name
'
,
username
:
'
username
'
,
...
...
spec/javascripts/boards/issue_spec.js
View file @
85834b64
...
...
@@ -2,14 +2,14 @@
/* global BoardService */
/* global ListIssue */
require
(
'
~/lib/utils/url_utility
'
)
;
require
(
'
~/boards/models/issue
'
)
;
require
(
'
~/boards/models/label
'
)
;
require
(
'
~/boards/models/list
'
)
;
require
(
'
~/boards/models/user
'
)
;
require
(
'
~/boards/services/board_service
'
)
;
require
(
'
~/boards/stores/boards_store
'
)
;
require
(
'
./mock_data
'
)
;
import
'
~/lib/utils/url_utility
'
;
import
'
~/boards/models/issue
'
;
import
'
~/boards/models/label
'
;
import
'
~/boards/models/list
'
;
import
'
~/boards/models/assignee
'
;
import
'
~/boards/services/board_service
'
;
import
'
~/boards/stores/boards_store
'
;
import
'
./mock_data
'
;
describe
(
'
Issue model
'
,
()
=>
{
let
issue
;
...
...
spec/javascripts/boards/list_spec.js
View file @
85834b64
...
...
@@ -8,14 +8,14 @@
import
Vue
from
'
vue
'
;
require
(
'
~/lib/utils/url_utility
'
)
;
require
(
'
~/boards/models/issue
'
)
;
require
(
'
~/boards/models/label
'
)
;
require
(
'
~/boards/models/list
'
)
;
require
(
'
~/boards/models/user
'
)
;
require
(
'
~/boards/services/board_service
'
)
;
require
(
'
~/boards/stores/boards_store
'
)
;
require
(
'
./mock_data
'
)
;
import
'
~/lib/utils/url_utility
'
;
import
'
~/boards/models/issue
'
;
import
'
~/boards/models/label
'
;
import
'
~/boards/models/list
'
;
import
'
~/boards/models/assignee
'
;
import
'
~/boards/services/board_service
'
;
import
'
~/boards/stores/boards_store
'
;
import
'
./mock_data
'
;
describe
(
'
List model
'
,
()
=>
{
let
list
;
...
...
spec/javascripts/boards/mock_data.js
View file @
85834b64
...
...
@@ -38,7 +38,8 @@ const BoardsMockData = {
title
:
'
Testing
'
,
iid
:
1
,
confidential
:
false
,
labels
:
[]
labels
:
[],
assignees
:
[],
}],
size
:
1
},
...
...
spec/javascripts/boards/modal_store_spec.js
View file @
85834b64
/* global ListIssue */
require
(
'
~/boards/models/issue
'
)
;
require
(
'
~/boards/models/label
'
)
;
require
(
'
~/boards/models/list
'
)
;
require
(
'
~/boards/models/user
'
)
;
require
(
'
~/boards/stores/modal_store
'
)
;
import
'
~/boards/models/issue
'
;
import
'
~/boards/models/label
'
;
import
'
~/boards/models/list
'
;
import
'
~/boards/models/assignee
'
;
import
'
~/boards/stores/modal_store
'
;
describe
(
'
Modal store
'
,
()
=>
{
let
issue
;
...
...
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