diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2019-05-24 14:50:21 +0000 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2019-05-24 14:40:34 -0700 |
commit | cf8df783661c841c07481f0f28628b5a71eb2bbf (patch) | |
tree | de9abc1cae20b911563569c5980d57404cb48d2e | |
parent | 62c464651d2df6f4002af4e4967d11be9aec8d92 (diff) | |
download | gitlab-ce-11-10-stable-patch-5.tar.gz |
Merge branch '62283-fix-job-app-spec' into 'master'11-10-stable-patch-5
Replaces a hard-coded date in the job app spec
Closes #62283
See merge request gitlab-org/gitlab-ce!28709
-rw-r--r-- | spec/javascripts/jobs/components/job_app_spec.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/javascripts/jobs/components/job_app_spec.js b/spec/javascripts/jobs/components/job_app_spec.js index cef40117304..f28d2c2a882 100644 --- a/spec/javascripts/jobs/components/job_app_spec.js +++ b/spec/javascripts/jobs/components/job_app_spec.js @@ -90,9 +90,12 @@ describe('Job App ', () => { describe('triggered job', () => { beforeEach(() => { + const aYearAgo = new Date(); + aYearAgo.setFullYear(aYearAgo.getFullYear() - 1); + mock .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 }); }); |