mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Fix test fails.
This commit is contained in:
committed by
jdalton
parent
6683809447
commit
4518c30cbe
16
test/test.js
16
test/test.js
@@ -7830,12 +7830,16 @@
|
|||||||
|
|
||||||
test('should work with typed arrays from another realm', 1, function() {
|
test('should work with typed arrays from another realm', 1, function() {
|
||||||
if (_._object) {
|
if (_._object) {
|
||||||
var expected = _.map(typedArrays, function(type) {
|
var props = _.map(typedArrays, function(type) {
|
||||||
return type in root;
|
return '_' + type.toLowerCase();
|
||||||
});
|
});
|
||||||
|
|
||||||
var actual = _.map(typedArrays, function(type) {
|
var expected = _.map(props, function(key) {
|
||||||
var value = _['_' + type.toLowerCase()];
|
return key in _;
|
||||||
|
});
|
||||||
|
|
||||||
|
var actual = _.map(props, function(key) {
|
||||||
|
var value = _[key];
|
||||||
return value ? _.isTypedArray(value) : false;
|
return value ? _.isTypedArray(value) : false;
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -8935,8 +8939,8 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('should merge typed arrays', 4, function() {
|
test('should merge typed arrays', 4, function() {
|
||||||
var array1 = [0, 0, 0]
|
var array1 = [0, 0, 0],
|
||||||
array2 = _.range(0, 6, 0)
|
array2 = _.range(0, 6, 0),
|
||||||
array3 = _.range(0, 12, 0),
|
array3 = _.range(0, 12, 0),
|
||||||
array4 = _.range(0, 24, 0);
|
array4 = _.range(0, 24, 0);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user