diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2018-10-12 20:16:47 +0300 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2018-10-12 20:16:47 +0300 |
commit | 1103f589f0a77bf11ca3103165fb287a6d092eb5 (patch) | |
tree | 5c1d0211192a7e9524d3684f0cdd5f1aa5654279 /spec/javascripts/jobs | |
parent | 7e342757e283a6fe552688351580ec6d6700e58f (diff) | |
parent | 85c30d742cec72466389a77a2df8d42e3c0075d7 (diff) |
Merge branch '52614-update-job-started-check' into 'master'
Updates the check for started in job header
See merge request gitlab-org/gitlab-ce!22329
Diffstat (limited to 'spec/javascripts/jobs')
-rw-r--r-- | spec/javascripts/jobs/store/getters_spec.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/javascripts/jobs/store/getters_spec.js b/spec/javascripts/jobs/store/getters_spec.js index 160b2f4b34a..e262a47b837 100644 --- a/spec/javascripts/jobs/store/getters_spec.js +++ b/spec/javascripts/jobs/store/getters_spec.js @@ -77,18 +77,18 @@ describe('Job Store Getters', () => { }); }); - describe('jobHasStarted', () => { - describe('when started equals false', () => { + describe('shouldRenderTriggeredLabel', () => { + describe('when started equals null', () => { it('returns false', () => { - localState.job.started = false; - expect(getters.jobHasStarted(localState)).toEqual(false); + localState.job.started = null; + expect(getters.shouldRenderTriggeredLabel(localState)).toEqual(false); }); }); describe('when started equals string', () => { it('returns true', () => { localState.job.started = '2018-08-31T16:20:49.023Z'; - expect(getters.jobHasStarted(localState)).toEqual(true); + expect(getters.shouldRenderTriggeredLabel(localState)).toEqual(true); }); }); }); |