From a9583f4440a33dd526a9cb52a99742953d210686 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 20 Dec 2014 16:12:57 -0600 Subject: [PATCH] Cleanup tests. --- test/test.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/test/test.js b/test/test.js index beccbc12c..696d959e0 100644 --- a/test/test.js +++ b/test/test.js @@ -6360,13 +6360,13 @@ function Foo() { this.a = 1; } Foo.prototype.constructor = null; - var otherObject = { 'a': 1 }; - strictEqual(_.isEqual(new Foo, otherObject), false); + var object2 = { 'a': 1 }; + strictEqual(_.isEqual(new Foo, object2), false); if (create) { - var object = create(null); - object.a = 1; - strictEqual(_.isEqual(object, otherObject), true); + var object1 = create(null); + object1.a = 1; + strictEqual(_.isEqual(object1, object2), true); } else { skipTest(); @@ -7926,7 +7926,7 @@ QUnit.module('lodash.matches'); (function() { - test('should create a function that performs a deep comparison between a given object and the `source` object', 6, function() { + test('should create a function that performs a deep comparison between a given object and `source`', 6, function() { var object = { 'a': 1, 'b': 2, 'c': 3 }, matches = _.matches({ 'a': 1 }); @@ -7948,13 +7948,13 @@ strictEqual(matches(object), true); }); - test('should compare a variety of `source` object values', 2, function() { - var object = { 'a': false, 'b': true, 'c': '3', 'd': 4, 'e': [5], 'f': { 'g': 6 } }, - otherObject = { 'a': 0, 'b': 1, 'c': 3, 'd': '4', 'e': ['5'], 'f': { 'g': '6' } }, - matches = _.matches(object); + test('should compare a variety of `source` values', 2, function() { + var object1 = { 'a': false, 'b': true, 'c': '3', 'd': 4, 'e': [5], 'f': { 'g': 6 } }, + object2 = { 'a': 0, 'b': 1, 'c': 3, 'd': '4', 'e': ['5'], 'f': { 'g': '6' } }, + matches = _.matches(object1); - strictEqual(matches(object), true); - strictEqual(matches(otherObject), false); + strictEqual(matches(object1), true); + strictEqual(matches(object2), false); }); test('should not change match behavior if `source` is augmented', 9, function() {