mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Fix failing test.
This commit is contained in:
@@ -1300,10 +1300,9 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('`_.' + methodName + '` should clone array buffers', 2, function() {
|
test('`_.' + methodName + '` should clone array buffers', 2, function() {
|
||||||
if (ArrayBuffer) {
|
var buffer = ArrayBuffer && new ArrayBuffer(4);
|
||||||
var buffer = new ArrayBuffer(4),
|
if (buffer && buffer.slice) {
|
||||||
actual = func(buffer);
|
var actual = func(buffer);
|
||||||
|
|
||||||
strictEqual(actual.byteLength, buffer.byteLength);
|
strictEqual(actual.byteLength, buffer.byteLength);
|
||||||
notStrictEqual(actual, buffer);
|
notStrictEqual(actual, buffer);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user