Remove unneeded _.escapeRegExp test.

This commit is contained in:
John-David Dalton
2015-08-18 13:46:55 -07:00
parent e7bdd4a624
commit 2c1c8fc8df

View File

@@ -3640,16 +3640,6 @@
deepEqual(actual, expected);
});
test('should work with `eval` and `Function`', 2, function() {
var actual = _.escapeRegExp(unescaped),
regexp = eval('(/' + actual + '/)');
ok(regexp.test(unescaped));
regexp = Function('return /' + actual + '/')();
ok(regexp.test(unescaped));
});
}());
/*--------------------------------------------------------------------------*/