Skip to content

Commit

Permalink
move importing chai to the top of the file
Browse files Browse the repository at this point in the history
to avoid timeout

Signed-off-by: Outsider <outsideris@gmail.com>
  • Loading branch information
outsideris committed Dec 5, 2018
1 parent 1b327ac commit a02f35d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/reporters/base.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

var assert = require('assert');
var chaiExpect = require('chai').expect;

var Base = require('../../lib/reporters/base');
var AssertionError = assert.AssertionError;
Expand Down Expand Up @@ -312,8 +313,6 @@ describe('Base reporter', function() {
});

it('should interpret Chai custom error messages', function() {
this.timeout(1000);
var chaiExpect = require('chai').expect;
try {
chaiExpect(43, 'custom error message').to.equal(42);
} catch (err) {
Expand Down

0 comments on commit a02f35d

Please sign in to comment.