Skip to content

Commit

Permalink
Attempt to fix test for invocation of 'console.error'
Browse files Browse the repository at this point in the history
  • Loading branch information
rspieker committed Jun 29, 2016
1 parent 021ed11 commit 2046e12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/direct.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ var Code = require('code'),
lab.experiment('Direct', function() {

lab.test('.trace() is deprecated', function(done) {
var old = console.log,
var old = console.error,
message;

console.error = function(input) {
message = input;
};
}.bind(console);

Code.expect(blame.trace('No more trace').message).to.equal('No more trace');
Code.expect(message).to.equal('blame.trace is deprecated: use blame.stack instead');
Expand Down

0 comments on commit 2046e12

Please sign in to comment.