Commit cd5813ee authored by Filipa Lacerda's avatar Filipa Lacerda

Fix comma-dangle in function's arguments errors

parent 54e62874
......@@ -166,7 +166,7 @@
*/
createdDate() {
return window.gl.environmentsList.timeagoInstance.format(
this.model.last_deployment.deployable.created_at
this.model.last_deployment.deployable.created_at,
);
},
......
......@@ -155,11 +155,11 @@ 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
environment.last_deployment.deployable.created_at,
);
expect(
component.$el.querySelector('.environment-created-date-timeago').textContent
component.$el.querySelector('.environment-created-date-timeago').textContent,
).toContain(formatedDate);
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment