Skip to content

Commit

Permalink
test: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
roggervalf committed Jul 30, 2024
1 parent b0c79e8 commit 4900798
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/test_queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -1146,7 +1146,7 @@ describe('Queue', () => {
);

let debouncedCounter = 0;
let secondJob;
let secondJob = null;
queue.on('debounced', (jobId) => {
if (debouncedCounter > 1) {
expect(jobId).to.be.equal(secondJob.id);
Expand Down Expand Up @@ -1184,15 +1184,15 @@ describe('Queue', () => {
});
});

describe('when removing debounced job', function () {
it('removes debounce key', async function () {
describe('when removing debounced job', () => {
it('removes debounce key', async ()=> {
const job = await queue.add(
{ foo: 'bar' },
{ debounce: { id: 'a1', ttl: 2000 } },
);

let debouncedCounter = 0;
queue.on('debounced', (jobId) => {
queue.on('debounced', () => {
debouncedCounter++;
});
await job.remove();
Expand Down Expand Up @@ -1227,8 +1227,8 @@ describe('Queue', () => {
});
});

describe('when ttl is not provided', function () {
it('waits until job is finished before removing debounce key', async function () {
describe('when ttl is not provided', ()=> {
it('waits until job is finished before removing debounce key', async ()=> {
queue.process(
async () => {
await delay(100);
Expand Down

0 comments on commit 4900798

Please sign in to comment.