Skip to content

Commit

Permalink
Merge pull request #300 from julienw/299-fix-getMessage-test
Browse files Browse the repository at this point in the history
Fix #299: the test is defining global variables
  • Loading branch information
keithamus committed Nov 6, 2014
2 parents 3e35adf + 84cba22 commit 6073d1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ describe('utilities', function () {
expect(_.getMessage(obj, [])).to.contain('foo');

var obj = {};
msg = function() { return "expected a to eql b"; }
negateMsg = function() { return "expected a not to eql b"; }
var msg = function() { return "expected a to eql b"; }
var negateMsg = function() { return "expected a not to eql b"; }
expect(_.getMessage(obj, [null, msg, negateMsg])).to.equal("expected a to eql b");
_.flag(obj, 'negate', true);
expect(_.getMessage(obj, [null, msg, negateMsg])).to.equal("expected a not to eql b");
Expand Down

0 comments on commit 6073d1c

Please sign in to comment.