Skip to content

Commit

Permalink
Deal with assert module more accurately
Browse files Browse the repository at this point in the history
  • Loading branch information
btd committed Jan 10, 2014
1 parent 60e180a commit 68000f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/ext/assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

var util = require('../util')
, assert = util.assert
, assert = require('assert')
, AssertionError = assert.AssertionError;

module.exports = function(should) {
Expand Down
3 changes: 1 addition & 2 deletions lib/should.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@


var util = require('./util')
, assert = util.assert
, AssertionError = assert.AssertionError
, AssertionError = util.AssertionError
, inspect = util.inspect;

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ exports.isError = isError;

exports.inspect = require('util').inspect;

exports.assert = require('assert');
exports.AssertionError = require('assert').AssertionError;

var hasOwnProperty = Object.prototype.hasOwnProperty;

Expand Down

0 comments on commit 68000f4

Please sign in to comment.