From c8730faa2b641f1bd160a465102741a30d4a6e63 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sat, 9 Jan 2016 16:29:55 +0100 Subject: [PATCH] tests --- test/typedarray-to-buffer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.34.1