Skip to content
Snippets Groups Projects
Commit cd5813ee authored by Filipa Lacerda's avatar Filipa Lacerda
Browse files

Fix comma-dangle in function's arguments errors

parent 54e62874
Branches
Tags
1 merge request!7830Resolve "Environments displaying incorrect date since 8.14 upgrade"
Pipeline #
Loading
@@ -166,7 +166,7 @@
Loading
@@ -166,7 +166,7 @@
*/ */
createdDate() { createdDate() {
return window.gl.environmentsList.timeagoInstance.format( return window.gl.environmentsList.timeagoInstance.format(
this.model.last_deployment.deployable.created_at this.model.last_deployment.deployable.created_at,
); );
}, },
   
Loading
Loading
Loading
@@ -155,11 +155,11 @@ describe('Environment item', () => {
Loading
@@ -155,11 +155,11 @@ describe('Environment item', () => {
it('should render last deployment date', () => { it('should render last deployment date', () => {
const timeagoInstance = new timeago(); // eslint-disable-line const timeagoInstance = new timeago(); // eslint-disable-line
const formatedDate = timeagoInstance.format( const formatedDate = timeagoInstance.format(
environment.last_deployment.deployable.created_at environment.last_deployment.deployable.created_at,
); );
   
expect( expect(
component.$el.querySelector('.environment-created-date-timeago').textContent component.$el.querySelector('.environment-created-date-timeago').textContent,
).toContain(formatedDate); ).toContain(formatedDate);
}); });
   
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment