From 3ea362b071da0055df22f5e57351d878b7b8292e Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sat, 6 Aug 2016 15:24:37 -0700 Subject: [PATCH] fix node tests not running --- test/node/test-buffer-alloc.js | 2 +- test/node/test-buffer-arraybuffer.js | 2 +- test/node/test-buffer-ascii.js | 2 +- test/node/test-buffer-bad-overload.js | 2 +- test/node/test-buffer-bytelength.js | 2 +- test/node/test-buffer-compare-offset.js | 2 +- test/node/test-buffer-concat.js | 2 +- test/node/test-buffer-fill.js | 2 +- test/node/test-buffer-includes.js | 2 +- test/node/test-buffer-indexof.js | 2 +- test/node/test-buffer-inheritance.js | 2 +- test/node/test-buffer-inspect.js | 2 +- test/node/test-buffer-iterator.js | 2 +- test/node/test-buffer-safe-unsafe.js | 2 +- test/node/test-buffer-slow.js | 2 +- test/node/test-buffer-swap.js | 2 +- test/node/test-buffer-zero-fill-cli.js | 2 +- test/node/test-buffer-zero-fill-reset.js | 2 +- test/node/test-buffer.js | 2 +- 19 files changed, 19 insertions(+), 19 deletions(-) diff --git a/test/node/test-buffer-alloc.js b/test/node/test-buffer-alloc.js index 74c2515..29eb3a5 100644 --- a/test/node/test-buffer-alloc.js +++ b/test/node/test-buffer-alloc.js @@ -1,6 +1,6 @@ 'use strict'; var Buffer = require('../../').Buffer; -if (Buffer.TYPED_ARRAY_SUPPORT) return; +if (!Buffer.TYPED_ARRAY_SUPPORT) return; var common = {}; var assert = require('assert'); diff --git a/test/node/test-buffer-arraybuffer.js b/test/node/test-buffer-arraybuffer.js index 6e0698d..9721add 100644 --- a/test/node/test-buffer-arraybuffer.js +++ b/test/node/test-buffer-arraybuffer.js @@ -1,6 +1,6 @@ 'use strict'; var Buffer = require('../../').Buffer; -if (Buffer.TYPED_ARRAY_SUPPORT) return; +if (!Buffer.TYPED_ARRAY_SUPPORT) return; var assert = require('assert'); diff --git a/test/node/test-buffer-ascii.js b/test/node/test-buffer-ascii.js index b53fb94..b0b6ea6 100644 --- a/test/node/test-buffer-ascii.js +++ b/test/node/test-buffer-ascii.js @@ -1,6 +1,6 @@ 'use strict'; var Buffer = require('../../').Buffer; -if (Buffer.TYPED_ARRAY_SUPPORT) return; +if (!Buffer.TYPED_ARRAY_SUPPORT) return; var assert = require('assert'); diff --git a/test/node/test-buffer-bad-overload.js b/test/node/test-buffer-bad-overload.js index 6ed07f3..0e61175 100644 --- a/test/node/test-buffer-bad-overload.js +++ b/test/node/test-buffer-bad-overload.js @@ -1,6 +1,6 @@ 'use strict'; var Buffer = require('../../').Buffer; -if (Buffer.TYPED_ARRAY_SUPPORT) return; +if (!Buffer.TYPED_ARRAY_SUPPORT) return; var assert = require('assert'); diff --git a/test/node/test-buffer-bytelength.js b/test/node/test-buffer-bytelength.js index 3a9a0ce..e55163a 100644 --- a/test/node/test-buffer-bytelength.js +++ b/test/node/test-buffer-bytelength.js @@ -1,6 +1,6 @@ 'use strict'; var Buffer = require('../../').Buffer; -if (Buffer.TYPED_ARRAY_SUPPORT) return; +if (!Buffer.TYPED_ARRAY_SUPPORT) return; var assert = require('assert'); diff --git a/test/node/test-buffer-compare-offset.js b/test/node/test-buffer-compare-offset.js index 76caee6..a0640d2 100644 --- a/test/node/test-buffer-compare-offset.js +++ b/test/node/test-buffer-compare-offset.js @@ -1,6 +1,6 @@ 'use strict'; var Buffer = require('../../').Buffer; -if (Buffer.TYPED_ARRAY_SUPPORT) return; +if (!Buffer.TYPED_ARRAY_SUPPORT) return; var assert = require('assert'); diff --git a/test/node/test-buffer-concat.js b/test/node/test-buffer-concat.js index 627e3c7..7b2e572 100644 --- a/test/node/test-buffer-concat.js +++ b/test/node/test-buffer-concat.js @@ -1,6 +1,6 @@ 'use strict'; var Buffer = require('../../').Buffer; -if (Buffer.TYPED_ARRAY_SUPPORT) return; +if (!Buffer.TYPED_ARRAY_SUPPORT) return; var assert = require('assert'); diff --git a/test/node/test-buffer-fill.js b/test/node/test-buffer-fill.js index 8714499..a28af29 100644 --- a/test/node/test-buffer-fill.js +++ b/test/node/test-buffer-fill.js @@ -1,6 +1,6 @@ 'use strict'; var Buffer = require('../../').Buffer; -if (Buffer.TYPED_ARRAY_SUPPORT) return; +if (!Buffer.TYPED_ARRAY_SUPPORT) return; var assert = require('assert'); diff --git a/test/node/test-buffer-includes.js b/test/node/test-buffer-includes.js index 084c637..78b170f 100644 --- a/test/node/test-buffer-includes.js +++ b/test/node/test-buffer-includes.js @@ -1,6 +1,6 @@ 'use strict'; var Buffer = require('../../').Buffer; -if (Buffer.TYPED_ARRAY_SUPPORT) return; +if (!Buffer.TYPED_ARRAY_SUPPORT) return; var assert = require('assert'); diff --git a/test/node/test-buffer-indexof.js b/test/node/test-buffer-indexof.js index 87d29cd..0228bd1 100644 --- a/test/node/test-buffer-indexof.js +++ b/test/node/test-buffer-indexof.js @@ -1,6 +1,6 @@ 'use strict'; var Buffer = require('../../').Buffer; -if (Buffer.TYPED_ARRAY_SUPPORT) return; +if (!Buffer.TYPED_ARRAY_SUPPORT) return; var assert = require('assert'); diff --git a/test/node/test-buffer-inheritance.js b/test/node/test-buffer-inheritance.js index 8dbfa7f..afcdb97 100644 --- a/test/node/test-buffer-inheritance.js +++ b/test/node/test-buffer-inheritance.js @@ -1,6 +1,6 @@ 'use strict'; var Buffer = require('../../').Buffer; -if (Buffer.TYPED_ARRAY_SUPPORT) return; +if (!Buffer.TYPED_ARRAY_SUPPORT) return; var assert = require('assert'); diff --git a/test/node/test-buffer-inspect.js b/test/node/test-buffer-inspect.js index b8658b0..609af30 100644 --- a/test/node/test-buffer-inspect.js +++ b/test/node/test-buffer-inspect.js @@ -1,6 +1,6 @@ 'use strict'; var Buffer = require('../../').Buffer; -if (Buffer.TYPED_ARRAY_SUPPORT) return; +if (!Buffer.TYPED_ARRAY_SUPPORT) return; var assert = require('assert'); diff --git a/test/node/test-buffer-iterator.js b/test/node/test-buffer-iterator.js index 4b5d51f..7e93ed5 100644 --- a/test/node/test-buffer-iterator.js +++ b/test/node/test-buffer-iterator.js @@ -1,6 +1,6 @@ 'use strict'; var Buffer = require('../../').Buffer; -if (Buffer.TYPED_ARRAY_SUPPORT) return; +if (!Buffer.TYPED_ARRAY_SUPPORT) return; var assert = require('assert'); diff --git a/test/node/test-buffer-safe-unsafe.js b/test/node/test-buffer-safe-unsafe.js index ce7b779..5a39ae4 100644 --- a/test/node/test-buffer-safe-unsafe.js +++ b/test/node/test-buffer-safe-unsafe.js @@ -1,6 +1,6 @@ 'use strict'; var Buffer = require('../../').Buffer; -if (Buffer.TYPED_ARRAY_SUPPORT) return; +if (!Buffer.TYPED_ARRAY_SUPPORT) return; var assert = require('assert'); diff --git a/test/node/test-buffer-slow.js b/test/node/test-buffer-slow.js index c66742d..56d403e 100644 --- a/test/node/test-buffer-slow.js +++ b/test/node/test-buffer-slow.js @@ -1,6 +1,6 @@ 'use strict'; var Buffer = require('../../').Buffer; -if (Buffer.TYPED_ARRAY_SUPPORT) return; +if (!Buffer.TYPED_ARRAY_SUPPORT) return; var assert = require('assert'); diff --git a/test/node/test-buffer-swap.js b/test/node/test-buffer-swap.js index e2e6ec1..5e4225c 100644 --- a/test/node/test-buffer-swap.js +++ b/test/node/test-buffer-swap.js @@ -1,6 +1,6 @@ 'use strict'; var Buffer = require('../../').Buffer; -if (Buffer.TYPED_ARRAY_SUPPORT) return; +if (!Buffer.TYPED_ARRAY_SUPPORT) return; var assert = require('assert'); diff --git a/test/node/test-buffer-zero-fill-cli.js b/test/node/test-buffer-zero-fill-cli.js index c65a07e..7cea0a9 100644 --- a/test/node/test-buffer-zero-fill-cli.js +++ b/test/node/test-buffer-zero-fill-cli.js @@ -1,6 +1,6 @@ 'use strict'; var Buffer = require('../../').Buffer; -if (Buffer.TYPED_ARRAY_SUPPORT) return; +if (!Buffer.TYPED_ARRAY_SUPPORT) return; // Flags: --zero-fill-buffers // when using --zero-fill-buffers, every Buffer and SlowBuffer diff --git a/test/node/test-buffer-zero-fill-reset.js b/test/node/test-buffer-zero-fill-reset.js index f0cd1de..10146f9 100644 --- a/test/node/test-buffer-zero-fill-reset.js +++ b/test/node/test-buffer-zero-fill-reset.js @@ -1,6 +1,6 @@ 'use strict'; var Buffer = require('../../').Buffer; -if (Buffer.TYPED_ARRAY_SUPPORT) return; +if (!Buffer.TYPED_ARRAY_SUPPORT) return; var assert = require('assert'); diff --git a/test/node/test-buffer.js b/test/node/test-buffer.js index 0534723..d0c69a4 100644 --- a/test/node/test-buffer.js +++ b/test/node/test-buffer.js @@ -1,6 +1,6 @@ 'use strict'; var Buffer = require('../../').Buffer; -if (Buffer.TYPED_ARRAY_SUPPORT) return; +if (!Buffer.TYPED_ARRAY_SUPPORT) return; var common = {}; var assert = require('assert'); -- 2.34.1