Skip to content

Commit

Permalink
Tests: simulate grouped-queue 0.3.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Mar 11, 2020
1 parent 0004788 commit c18771b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -1339,6 +1339,8 @@ describe('Base', () => {

describe('Custom priorities', () => {
beforeEach(function() {
this.addSubQueue = this.env.runLoop.addSubQueue;
delete this.env.runLoop.addSubQueue;
this.TestGenerator = class extends Base {
constructor(args, options) {
super(args, {
Expand Down Expand Up @@ -1374,6 +1376,11 @@ describe('Base', () => {
};
});

beforeEach(function() {
this.env.runLoop.addSubQueue = this.addSubQueue;
delete this.addSubQueue;
});

it('generates correct _queues and runLoop queueNames', function() {
_.extend(this.TestGenerator.prototype, {
assert: function() {
Expand Down

0 comments on commit c18771b

Please sign in to comment.