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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
8c9094cb
Commit
8c9094cb
authored
Mar 05, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LabelsSelectComponent tests mock data
parent
3fe4ea80
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
0 deletions
+49
-0
spec/javascripts/vue_shared/components/sidebar/labels_select/mock_data.js
.../vue_shared/components/sidebar/labels_select/mock_data.js
+49
-0
No files found.
spec/javascripts/vue_shared/components/sidebar/labels_select/mock_data.js
0 → 100644
View file @
8c9094cb
export
const
mockLabels
=
[
{
id
:
26
,
title
:
'
Foo Label
'
,
description
:
'
Foobar
'
,
color
:
'
#BADA55
'
,
text_color
:
'
#FFFFFF
'
,
},
];
export
const
mockSuggestedColors
=
[
'
#0033CC
'
,
'
#428BCA
'
,
'
#44AD8E
'
,
'
#A8D695
'
,
'
#5CB85C
'
,
'
#69D100
'
,
'
#004E00
'
,
'
#34495E
'
,
'
#7F8C8D
'
,
'
#A295D6
'
,
'
#5843AD
'
,
'
#8E44AD
'
,
'
#FFECDB
'
,
'
#AD4363
'
,
'
#D10069
'
,
'
#CC0033
'
,
'
#FF0000
'
,
'
#D9534F
'
,
'
#D1D100
'
,
'
#F0AD4E
'
,
'
#AD8D43
'
,
];
export
const
mockConfig
=
{
showCreate
:
true
,
abilityName
:
'
issue
'
,
context
:
{
labels
:
mockLabels
,
},
namespace
:
'
gitlab-org
'
,
updatePath
:
'
/gitlab-org/my-project/issue/1
'
,
labelsPath
:
'
/gitlab-org/my-project/labels.json
'
,
labelsWebUrl
:
'
/gitlab-org/my-project/labels
'
,
labelFilterBasePath
:
'
/gitlab-org/my-project/issues
'
,
canEdit
:
true
,
suggestedColors
:
mockSuggestedColors
,
emptyValueText
:
'
None
'
,
};
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