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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
24f023b1
Commit
24f023b1
authored
Oct 27, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add latest changes from gitlab-org/gitlab@master
parent
cc5d0271
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
spec/frontend/releases/list/components/release_block_spec.js
spec/frontend/releases/list/components/release_block_spec.js
+12
-0
No files found.
spec/frontend/releases/list/components/release_block_spec.js
View file @
24f023b1
...
@@ -39,13 +39,25 @@ describe('Release block', () => {
...
@@ -39,13 +39,25 @@ describe('Release block', () => {
const
milestoneListLabel
=
()
=>
wrapper
.
find
(
'
.js-milestone-list-label
'
);
const
milestoneListLabel
=
()
=>
wrapper
.
find
(
'
.js-milestone-list-label
'
);
const
editButton
=
()
=>
wrapper
.
find
(
'
.js-edit-button
'
);
const
editButton
=
()
=>
wrapper
.
find
(
'
.js-edit-button
'
);
const
RealDate
=
Date
;
beforeEach
(()
=>
{
beforeEach
(()
=>
{
// timeago.js calls Date(), so let's mock that case to avoid time-dependent test failures.
const
constantDate
=
new
Date
(
'
2019-10-25T00:12:00
'
);
/* eslint no-global-assign:off */
global
.
Date
=
jest
.
fn
((...
props
)
=>
props
.
length
?
new
RealDate
(...
props
)
:
new
RealDate
(
constantDate
),
);
Object
.
assign
(
Date
,
RealDate
);
releaseClone
=
JSON
.
parse
(
JSON
.
stringify
(
release
));
releaseClone
=
JSON
.
parse
(
JSON
.
stringify
(
release
));
});
});
afterEach
(()
=>
{
afterEach
(()
=>
{
wrapper
.
destroy
();
wrapper
.
destroy
();
global
.
Date
=
RealDate
;
});
});
describe
(
'
with default props
'
,
()
=>
{
describe
(
'
with default props
'
,
()
=>
{
...
...
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