Fix comma-dangle in function's arguments errors

This commit is contained in:
Filipa Lacerda 2016-11-30 14:24:12 +00:00
parent 54e6287404
commit cd5813ee21
2 changed files with 3 additions and 3 deletions

View File

@ -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,
);
},

View File

@ -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);
});