Commit b678e07e authored by Winnie Hellmann's avatar Winnie Hellmann

Run yarn prettier-all-save

parent 7b846c67
......@@ -31,7 +31,7 @@ export default {
const text = `${name} - ${status.tooltip}`;
if (this.isDelayedJob) {
return sprintf(text, { remainingTime: this.remainingTime })
return sprintf(text, { remainingTime: this.remainingTime });
}
return text;
......
......@@ -422,17 +422,19 @@ describe('Job App ', () => {
}, 0);
});
it('displays remaining time for a delayed job', (done) => {
it('displays remaining time for a delayed job', done => {
const oneHourInMilliseconds = 3600000;
spyOn(Date, 'now').and.callFake(() => new Date(delayedJobFixture.scheduled_at).getTime() - oneHourInMilliseconds);
mock.onGet(props.endpoint).replyOnce(200, { ... delayedJobFixture });
spyOn(Date, 'now').and.callFake(
() => new Date(delayedJobFixture.scheduled_at).getTime() - oneHourInMilliseconds,
);
mock.onGet(props.endpoint).replyOnce(200, { ...delayedJobFixture });
vm = mountComponentWithStore(Component, {
props,
store,
});
store.subscribeAction((action) => {
store.subscribeAction(action => {
if (action.type !== 'receiveJobSuccess') {
return;
}
......
......@@ -88,11 +88,9 @@ describe('JobContainerItem', () => {
Vue.nextTick()
.then(() => {
expect(
vm.$el
.querySelector('.js-job-link')
.getAttribute('data-original-title'),
).toEqual('delayed job - delayed manual action (00:22:17)');
expect(vm.$el.querySelector('.js-job-link').getAttribute('data-original-title')).toEqual(
'delayed job - delayed manual action (00:22:17)',
);
})
.then(done)
.catch(done.fail);
......
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