Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjakeburden <jburden@gitlab.com>2019-08-21 21:58:04 +0300
committerjakeburden <jburden@gitlab.com>2019-08-28 15:48:14 +0300
commita3edfab1a9fcfdab56d2f2d29fa9f72ce0455ee4 (patch)
treed3eb7bbe85a789d72e2cb2296431ac0130f5be41 /spec/javascripts
parentef0f1509dd2a2a3ba5798362e2be21108b705a85 (diff)
Show correct deployment date for a manual job
Only display time if the job has deployed Update JS tests for displaying job deployment time Simplify boolean check in deployedDate
Diffstat (limited to 'spec/javascripts')
-rw-r--r--spec/javascripts/environments/environment_item_spec.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/javascripts/environments/environment_item_spec.js b/spec/javascripts/environments/environment_item_spec.js
index 388d7063d13..f9ee4648128 100644
--- a/spec/javascripts/environments/environment_item_spec.js
+++ b/spec/javascripts/environments/environment_item_spec.js
@@ -106,6 +106,7 @@ describe('Environment item', () => {
play_path: '/play',
},
],
+ deployed_at: '2016-11-29T18:11:58.430Z',
},
has_stop_action: true,
environment_path: 'root/ci-folders/environments/31',
@@ -139,9 +140,7 @@ describe('Environment item', () => {
it('should render last deployment date', () => {
const timeagoInstance = new timeago(); // eslint-disable-line
- const formatedDate = timeagoInstance.format(
- environment.last_deployment.deployable.created_at,
- );
+ const formatedDate = timeagoInstance.format(environment.last_deployment.deployed_at);
expect(
component.$el.querySelector('.environment-created-date-timeago').textContent,