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
b9f0d367
Commit
b9f0d367
authored
Nov 01, 2019
by
jakeburden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update timeago usage in environment item test
parent
f66cffc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
spec/javascripts/environments/environment_item_spec.js
spec/javascripts/environments/environment_item_spec.js
+2
-3
No files found.
spec/javascripts/environments/environment_item_spec.js
View file @
b9f0d367
import
'
timeago.js
'
;
import
{
format
}
from
'
timeago.js
'
;
import
Vue
from
'
vue
'
;
import
Vue
from
'
vue
'
;
import
environmentItemComp
from
'
~/environments/components/environment_item.vue
'
;
import
environmentItemComp
from
'
~/environments/components/environment_item.vue
'
;
...
@@ -139,8 +139,7 @@ describe('Environment item', () => {
...
@@ -139,8 +139,7 @@ describe('Environment item', () => {
});
});
it
(
'
should render last deployment date
'
,
()
=>
{
it
(
'
should render last deployment date
'
,
()
=>
{
const
timeagoInstance
=
new
timeago
();
// eslint-disable-line
const
formatedDate
=
format
(
environment
.
last_deployment
.
deployed_at
);
const
formatedDate
=
timeagoInstance
.
format
(
environment
.
last_deployment
.
deployed_at
);
expect
(
expect
(
component
.
$el
.
querySelector
(
'
.environment-created-date-timeago
'
).
textContent
,
component
.
$el
.
querySelector
(
'
.environment-created-date-timeago
'
).
textContent
,
...
...
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