Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
donatas committed Jun 13, 2018
1 parent f1a7902 commit ecc5eaa
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions test/debug_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ var chai
, log;


if (typeof module !== 'undefined') {
chai = require('chai');
expect = chai.expect;
sinon = require('sinon');
sinonChai = require('sinon-chai');
chai.use(sinonChai);
}

describe('debug', function () {
function withDebug(cb) {
function requireDebug() {
Expand All @@ -20,16 +28,6 @@ describe('debug', function () {
cb(requireDebug());
}

before(function () {
if (typeof module !== 'undefined') {
chai = require('chai');
expect = chai.expect;
sinon = require('sinon');
sinonChai = require("sinon-chai");
chai.use(sinonChai);
}
});

context('start up', function () {
beforeEach(function () {
withDebug(function(debugInstance) {
Expand Down

0 comments on commit ecc5eaa

Please sign in to comment.