Fix #299: the test is defining global variables

This commit is contained in:
Julien Wajsberg 2014-11-06 12:09:55 +01:00
parent 3e35adff93
commit 84cba222d1

View file

@ -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");