mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Cleanup symbol tests.
This commit is contained in:
12
test/test.js
12
test/test.js
@@ -2350,8 +2350,7 @@
|
|||||||
assert.expect(164);
|
assert.expect(164);
|
||||||
|
|
||||||
var Stack,
|
var Stack,
|
||||||
symbol = Symbol ? Symbol() : {},
|
keys = [true, false, 1, -Infinity, NaN, {}, null, 'a', symbol || {}, undefined];
|
||||||
keys = [true, false, 1, -Infinity, NaN, {}, null, 'a', symbol, undefined];
|
|
||||||
|
|
||||||
var pairs = lodashStable.map(keys, function(key, index) {
|
var pairs = lodashStable.map(keys, function(key, index) {
|
||||||
var lastIndex = keys.length - 1;
|
var lastIndex = keys.length - 1;
|
||||||
@@ -9759,8 +9758,7 @@
|
|||||||
QUnit.test('should return `false` for non-objects', function(assert) {
|
QUnit.test('should return `false` for non-objects', function(assert) {
|
||||||
assert.expect(1);
|
assert.expect(1);
|
||||||
|
|
||||||
var symbol = (Symbol || noop)(),
|
var values = falsey.concat(true, 1, 'a', symbol),
|
||||||
values = falsey.concat(true, 1, 'a', symbol),
|
|
||||||
expected = lodashStable.map(values, lodashStable.constant(false));
|
expected = lodashStable.map(values, lodashStable.constant(false));
|
||||||
|
|
||||||
var actual = lodashStable.map(values, function(value, index) {
|
var actual = lodashStable.map(values, function(value, index) {
|
||||||
@@ -9834,8 +9832,7 @@
|
|||||||
QUnit.test('should return `false` for non-objects', function(assert) {
|
QUnit.test('should return `false` for non-objects', function(assert) {
|
||||||
assert.expect(1);
|
assert.expect(1);
|
||||||
|
|
||||||
var symbol = (Symbol || noop)(),
|
var values = falsey.concat(true, _, slice, 1, 'a', symbol),
|
||||||
values = falsey.concat(true, _, slice, 1, 'a', symbol),
|
|
||||||
expected = lodashStable.map(values, lodashStable.constant(false));
|
expected = lodashStable.map(values, lodashStable.constant(false));
|
||||||
|
|
||||||
var actual = lodashStable.map(values, function(value, index) {
|
var actual = lodashStable.map(values, function(value, index) {
|
||||||
@@ -12755,8 +12752,7 @@
|
|||||||
QUnit.test('should implement a `Map` interface on the cache object', function(assert) {
|
QUnit.test('should implement a `Map` interface on the cache object', function(assert) {
|
||||||
assert.expect(164);
|
assert.expect(164);
|
||||||
|
|
||||||
var symbol = Symbol ? Symbol() : {},
|
var keys = [true, false, 1, -Infinity, NaN, {}, null, 'a', symbol || {} , undefined];
|
||||||
keys = [true, false, 1, -Infinity, NaN, {}, null, 'a', symbol , undefined];
|
|
||||||
|
|
||||||
var pairs = lodashStable.map(keys, function(key, index) {
|
var pairs = lodashStable.map(keys, function(key, index) {
|
||||||
var lastIndex = keys.length - 1;
|
var lastIndex = keys.length - 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user