From 84cba222d1774d377a37223516f498ce5c93bb90 Mon Sep 17 00:00:00 2001 From: Julien Wajsberg Date: Thu, 6 Nov 2014 12:09:55 +0100 Subject: [PATCH] Fix #299: the test is defining global variables --- test/utilities.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/utilities.js b/test/utilities.js index eeedc0c12..4c0b4b398 100644 --- a/test/utilities.js +++ b/test/utilities.js @@ -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");