BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
_discussion.html.haml
app/views/projects/issues/_discussion.html.haml
+1
-1
issue_note_awards_list_spec.js
...vascripts/notes/components/issue_note_awards_list_spec.js
+2
-1
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