mirror of
https://github.com/OptimalBits/bull.git
synced 2026-07-02 00:17:41 +08:00
test: ban use of console
Logging is useful in tests to debug failures, but leaving it in leads to noise.
This commit is contained in:
@@ -5,4 +5,5 @@ env:
|
||||
mocha: true
|
||||
|
||||
rules:
|
||||
no-console: 2
|
||||
no-process-exit: 0
|
||||
|
||||
@@ -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 });
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user