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:
parent
013051a6c9
commit
2fe4f66ae3
1 changed files with 101 additions and 99 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Reference in a new issue