remove accidental async from test descriptions

This commit is contained in:
Alex Holliday
2024-10-28 18:12:46 +08:00
parent 9863aa48e2
commit eed6f8dc83

View File

@@ -648,7 +648,7 @@ describe("JobQueue", () => {
});
});
describe("addJob", async () => {
describe("addJob", () => {
it("should add a job to the queue", async () => {
jobQueue.addJob("test", { url: "test" });
expect(jobQueue.queue.jobs.length).to.equal(1);
@@ -681,7 +681,7 @@ describe("JobQueue", () => {
}
});
});
describe("deleteJob", async () => {
describe("deleteJob", () => {
it("should delete a job from the queue", async () => {
jobQueue.getWorkerStats = sinon.stub().returns({ load: 1, jobs: [{}] });
jobQueue.scaleWorkers = sinon.stub();