Skip to content

Commit

Permalink
disregard function names when testing under Node.js 6.5.0; closes #2467
Browse files Browse the repository at this point in the history
… (#2477)
  • Loading branch information
boneskull authored Sep 14, 2016
1 parent 4a87a94 commit 95e524c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/suite.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ describe('Suite', function(){

this.suite._beforeAll.should.have.length(1);
var beforeAllItem = this.suite._beforeAll[0];
beforeAllItem.title.should.equal('"before all" hook');
beforeAllItem.title.should.match(/^"before all" hook/);
beforeAllItem.fn.should.equal(fn);
});

Expand Down Expand Up @@ -171,7 +171,7 @@ describe('Suite', function(){

this.suite._afterAll.should.have.length(1);
var afterAllItem = this.suite._afterAll[0];
afterAllItem.title.should.equal('"after all" hook');
afterAllItem.title.should.match(/^"after all" hook/);
afterAllItem.fn.should.equal(fn);
});
it('appends title to hook', function(){
Expand Down Expand Up @@ -205,7 +205,7 @@ describe('Suite', function(){

this.suite._beforeEach.should.have.length(1);
var beforeEachItem = this.suite._beforeEach[0];
beforeEachItem.title.should.equal('"before each" hook');
beforeEachItem.title.should.match(/^"before each" hook/);
beforeEachItem.fn.should.equal(fn);
});

Expand Down Expand Up @@ -240,7 +240,7 @@ describe('Suite', function(){

this.suite._afterEach.should.have.length(1);
var afterEachItem = this.suite._afterEach[0];
afterEachItem.title.should.equal('"after each" hook');
afterEachItem.title.should.match(/^"after each" hook/);
afterEachItem.fn.should.equal(fn);
});

Expand Down

0 comments on commit 95e524c

Please sign in to comment.