add queue tests for job creation
This commit is contained in:
17
test/fixtures/job.js
vendored
Normal file
17
test/fixtures/job.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
import events from 'events';
|
||||
|
||||
export default class Job extends events.EventEmitter {
|
||||
constructor(queue, index, type, payload, options = {}) {
|
||||
super();
|
||||
|
||||
this.queue = queue;
|
||||
this.index = index;
|
||||
this.jobType = type;
|
||||
this.payload = payload;
|
||||
this.options = options;
|
||||
}
|
||||
|
||||
getProp(name) {
|
||||
return this[name];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user