Fix comma-dangle in function's arguments errors
This commit is contained in:
parent
54e6287404
commit
cd5813ee21
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue