Files
outline/__mocks__/bull.js
2020-11-26 21:11:35 -08:00

19 lines
315 B
JavaScript

// @flow
export default class Queue {
name: string;
constructor(name) {
this.name = name;
}
process = (fn) => {
console.log(`Registered function ${this.name}`);
this.processFn = fn;
};
add = (data) => {
console.log(`Running ${this.name}`);
return this.processFn({ data });
};
}