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
cc81a40d
Commit
cc81a40d
authored
Aug 30, 2017
by
Clement Ho
Committed by
Filipa Lacerda
Aug 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix invalid attribute used for time-ago-tooltip component
parent
d540d43e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
edited.vue
app/assets/javascripts/issue_show/components/edited.vue
+1
-1
edited_spec.js
spec/javascripts/issue_show/components/edited_spec.js
+10
-0
No files found.
app/assets/javascripts/issue_show/components/edited.vue
View file @
cc81a40d
...
...
@@ -37,7 +37,7 @@ export default {
Edited
<time-ago-tooltip
v-if=
"updatedAt"
placement=
"bottom"
tooltip-
placement=
"bottom"
:time=
"updatedAt"
/>
<span
...
...
spec/javascripts/issue_show/components/edited_spec.js
View file @
cc81a40d
...
...
@@ -46,4 +46,14 @@ describe('edited', () => {
expect
(
editedComponent
.
$el
.
querySelector
(
'.author_link'
)).
toBeFalsy
();
expect
(
editedComponent
.
$el
.
querySelector
(
'time'
)).
toBeTruthy
();
});
it
(
'renders time ago tooltip at the bottom'
,
()
=>
{
const
editedComponent
=
new
EditedComponent
({
propsData
:
{
updatedAt
:
'2017-05-15T12:31:04.428Z'
,
},
}).
$mount
();
expect
(
editedComponent
.
$el
.
querySelector
(
'time'
).
dataset
.
placement
).
toEqual
(
'bottom'
);
});
});
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