mirror of
https://github.com/chaijs/chai
synced 2024-11-15 00:07:11 +00:00
Fix #299: the test is defining global variables
This commit is contained in:
parent
3e35adff93
commit
84cba222d1
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue