summaryrefslogtreecommitdiff
path: root/spec/javascripts/jobs/components/job_app_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/javascripts/jobs/components/job_app_spec.js')
-rw-r--r--spec/javascripts/jobs/components/job_app_spec.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/spec/javascripts/jobs/components/job_app_spec.js b/spec/javascripts/jobs/components/job_app_spec.js
index ba69554012e..af1e4b8caf6 100644
--- a/spec/javascripts/jobs/components/job_app_spec.js
+++ b/spec/javascripts/jobs/components/job_app_spec.js
@@ -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;
}