From 582662dadcf9abf48d0b5ba573ef361f93547f21 Mon Sep 17 00:00:00 2001 From: Gabe Gorelick Date: Mon, 4 Nov 2019 11:31:22 -0500 Subject: [PATCH] test: ban use of console Logging is useful in tests to debug failures, but leaving it in leads to noise. --- test/.eslintrc.yml | 1 + test/test_job.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/test/.eslintrc.yml b/test/.eslintrc.yml index 8eb9ef1..5c3eb1c 100644 --- a/test/.eslintrc.yml +++ b/test/.eslintrc.yml @@ -5,4 +5,5 @@ env: mocha: true rules: + no-console: 2 no-process-exit: 0 diff --git a/test/test_job.js b/test/test_job.js index 8634ac4..91108a2 100644 --- a/test/test_job.js +++ b/test/test_job.js @@ -484,7 +484,6 @@ describe('Job', () => { const job = await Job.create(queue, { foo: 'bar' }); await job.progress({ total: 120, completed: 40 }); const storedJob = await Job.fromId(queue, job.id); - console.error(storedJob); expect(storedJob.progress()).to.eql({ total: 120, completed: 40 }); }); });