0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Cleanedup job manager one off test structure

refs https://github.com/TryGhost/Toolbox/issues/359

- LIttle housekeeping was needed before introducing "inline" one-off jobs
This commit is contained in:
Naz 2022-07-26 15:18:48 +01:00
parent 013051a6c9
commit 2fe4f66ae3

View file

@ -266,6 +266,7 @@ describe('Job Manager', function () {
}
});
describe('Offloaded jobs', function () {
it('adds job to the queue when it is a unique one', async function () {
const spy = sinon.spy();
const JobModel = {
@ -382,6 +383,7 @@ describe('Job Manager', function () {
should(JobModel.edit.args[1][1].id).equal('unique');
});
});
});
describe('Remove a job', function () {
it('removes a scheduled job from the queue', async function () {