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
Jérome Perrin
gitlab-ce
Commits
1e41440b
Commit
1e41440b
authored
Aug 12, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken tests
parent
e93214bc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
app/views/projects/issues/_discussion.html.haml
app/views/projects/issues/_discussion.html.haml
+1
-1
spec/javascripts/notes/components/issue_note_awards_list_spec.js
...vascripts/notes/components/issue_note_awards_list_spec.js
+2
-1
spec/javascripts/notes/components/issue_note_body_spec.js
spec/javascripts/notes/components/issue_note_body_spec.js
+2
-1
No files found.
app/views/projects/issues/_discussion.html.haml
View file @
1e41440b
...
...
@@ -12,7 +12,7 @@
notes_path:
notes_url
(
view:
'full_data'
),
last_fetched_at:
Time
.
now
.
to_i
,
issue_data:
serialize_issuable
(
@issue
),
current_user_data:
UserSerializer
.
new
.
represent
(
current_user
).
to_json
}}
current_user_data:
UserSerializer
.
new
.
represent
(
current_user
).
to_json
}
}
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
'common_vue'
=
webpack_bundle_tag
'notes'
...
...
spec/javascripts/notes/components/issue_note_awards_list_spec.js
View file @
1e41440b
...
...
@@ -39,7 +39,8 @@ describe('issue_note_awards_list component', () => {
});
it
(
'
should render awarded emojis
'
,
()
=>
{
expect
(
vm
.
$el
.
querySelectorAll
(
'
.js-awards-block button
'
).
length
).
toEqual
(
awardsMock
.
length
);
expect
(
vm
.
$el
.
querySelector
(
'
.js-awards-block button [data-name="flag_tz"]
'
)).
toBeDefined
();
expect
(
vm
.
$el
.
querySelector
(
'
.js-awards-block button [data-name="cartwheel_tone3"]
'
)).
toBeDefined
();
});
it
(
'
should be possible to remove awareded emoji
'
,
()
=>
{
...
...
spec/javascripts/notes/components/issue_note_body_spec.js
View file @
1e41440b
...
...
@@ -40,6 +40,7 @@ describe('issue_note_body component', () => {
});
it
(
'
should render awards list
'
,
()
=>
{
expect
(
vm
.
$el
.
querySelectorAll
(
'
.js-awards-block button
'
).
length
).
toEqual
(
note
.
award_emoji
.
length
);
expect
(
vm
.
$el
.
querySelector
(
'
.js-awards-block button [data-name="baseball"]
'
)).
toBeDefined
();
expect
(
vm
.
$el
.
querySelector
(
'
.js-awards-block button [data-name="bath_tone3"]
'
)).
toBeDefined
();
});
});
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