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
60295c14
Commit
60295c14
authored
Dec 15, 2018
by
Martin Wortschack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken karma test
parent
c027101d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
changelogs/unreleased/55402-broken-master-karma-test-failing-in-spec-javascripts-boards-components-issue_due_date_spec-js.yml
...-javascripts-boards-components-issue_due_date_spec-js.yml
+5
-0
spec/javascripts/boards/components/issue_due_date_spec.js
spec/javascripts/boards/components/issue_due_date_spec.js
+4
-3
No files found.
changelogs/unreleased/55402-broken-master-karma-test-failing-in-spec-javascripts-boards-components-issue_due_date_spec-js.yml
0 → 100644
View file @
60295c14
---
title
:
Fix due date test
merge_request
:
23845
author
:
type
:
other
spec/javascripts/boards/components/issue_due_date_spec.js
View file @
60295c14
...
...
@@ -49,10 +49,11 @@ describe('Issue Due Date component', () => {
it
(
'
should render month and day for other dates
'
,
()
=>
{
date
.
setDate
(
date
.
getDate
()
+
17
);
vm
=
createComponent
(
date
);
const
today
=
new
Date
();
const
isDueInCurrentYear
=
today
.
getFullYear
()
===
date
.
getFullYear
();
const
format
=
isDueInCurrentYear
?
'
mmm d
'
:
'
mmm d, yyyy
'
;
expect
(
vm
.
$el
.
querySelector
(
'
time
'
).
textContent
.
trim
()).
toEqual
(
dateFormat
(
date
,
'
mmm d
'
,
true
),
);
expect
(
vm
.
$el
.
querySelector
(
'
time
'
).
textContent
.
trim
()).
toEqual
(
dateFormat
(
date
,
format
,
true
));
});
it
(
'
should contain the correct `.text-danger` css class for overdue issue
'
,
()
=>
{
...
...
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