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
aa26b9f0
Commit
aa26b9f0
authored
Nov 22, 2019
by
jakeburden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add namespaced locals in datetime_utility_spec
parent
02cc7676
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/frontend/lib/utils/datetime_utility_spec.js
spec/frontend/lib/utils/datetime_utility_spec.js
+2
-2
No files found.
spec/frontend/lib/utils/datetime_utility_spec.js
View file @
aa26b9f0
...
@@ -7,7 +7,7 @@ describe('Date time utils', () => {
...
@@ -7,7 +7,7 @@ describe('Date time utils', () => {
const
date
=
new
Date
();
const
date
=
new
Date
();
date
.
setFullYear
(
date
.
getFullYear
()
-
1
);
date
.
setFullYear
(
date
.
getFullYear
()
-
1
);
expect
(
datetimeUtility
.
timeFor
(
date
)).
toBe
(
__
(
'
Past due
'
));
expect
(
datetimeUtility
.
timeFor
(
date
)).
toBe
(
s__
(
'
Timeago|
Past due
'
));
});
});
it
(
'
returns localized remaining time when in the future
'
,
()
=>
{
it
(
'
returns localized remaining time when in the future
'
,
()
=>
{
...
@@ -18,7 +18,7 @@ describe('Date time utils', () => {
...
@@ -18,7 +18,7 @@ describe('Date time utils', () => {
// short of a full year, timeFor will return '11 months remaining'
// short of a full year, timeFor will return '11 months remaining'
date
.
setDate
(
date
.
getDate
()
+
1
);
date
.
setDate
(
date
.
getDate
()
+
1
);
expect
(
datetimeUtility
.
timeFor
(
date
)).
toBe
(
__
(
'
1 year remaining
'
));
expect
(
datetimeUtility
.
timeFor
(
date
)).
toBe
(
s__
(
'
Timeago|
1 year remaining
'
));
});
});
});
});
...
...
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