From: Feross Aboukhadijeh Date: Sat, 9 Jan 2016 15:29:55 +0000 (+0100) Subject: tests X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=c8730faa2b641f1bd160a465102741a30d4a6e63;p=buffer.git tests --- diff --git a/test/typedarray-to-buffer.js b/test/typedarray-to-buffer.js index e683b1a..3d02210 100644 --- a/test/typedarray-to-buffer.js +++ b/test/typedarray-to-buffer.js @@ -20,7 +20,7 @@ test('convert to buffer from Uint8Array', function (t) { }) test('convert to buffer from another arrayview type (Uint32Array)', function (t) { - if (typeof Uint32Array !== 'undefined' && B.TYPED_ARRAY_SUPPORT) { + if (typeof Uint32Array !== 'undefined' && B.TYPED_ARRAY_SUPPORT !== false) { var arr = new Uint32Array([1, 2, 3]) arr = toBuffer(arr) @@ -37,7 +37,7 @@ test('convert to buffer from another arrayview type (Uint32Array)', function (t) }) test('convert to buffer from ArrayBuffer', function (t) { - if (typeof Uint32Array !== 'undefined' && B.TYPED_ARRAY_SUPPORT) { + if (typeof Uint32Array !== 'undefined' && B.TYPED_ARRAY_SUPPORT !== false) { var arr = new Uint32Array([1, 2, 3]).subarray(1, 2) arr = toBuffer(arr)