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
Boxiang Sun
gitlab-ce
Commits
234bc46b
Commit
234bc46b
authored
May 24, 2019
by
samdbeckham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaces a hard-coded date in the job app spec
parent
b02c2583
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
spec/javascripts/jobs/components/job_app_spec.js
spec/javascripts/jobs/components/job_app_spec.js
+4
-1
No files found.
spec/javascripts/jobs/components/job_app_spec.js
View file @
234bc46b
...
@@ -90,9 +90,12 @@ describe('Job App ', () => {
...
@@ -90,9 +90,12 @@ describe('Job App ', () => {
describe
(
'
triggered job
'
,
()
=>
{
describe
(
'
triggered job
'
,
()
=>
{
beforeEach
(()
=>
{
beforeEach
(()
=>
{
const
aYearAgo
=
new
Date
();
aYearAgo
.
setFullYear
(
aYearAgo
.
getFullYear
()
-
1
);
mock
mock
.
onGet
(
props
.
endpoint
)
.
onGet
(
props
.
endpoint
)
.
replyOnce
(
200
,
Object
.
assign
({},
job
,
{
started
:
'
2017-05-24T10:59:52.000+01:00
'
}));
.
replyOnce
(
200
,
Object
.
assign
({},
job
,
{
started
:
aYearAgo
.
toISOString
()
}));
vm
=
mountComponentWithStore
(
Component
,
{
props
,
store
});
vm
=
mountComponentWithStore
(
Component
,
{
props
,
store
});
});
});
...
...
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