summaryrefslogtreecommitdiff
path: root/test/parallel/test-util.js
diff options
context:
space:
mode:
authorBrendan Ashworth <brendan.ashworth@me.com>2015-06-15 21:52:06 -0700
committerBrendan Ashworth <brendan.ashworth@me.com>2015-06-16 16:07:18 -0700
commitd5637e67c9d01763c2cb4c202413b4d5890e0486 (patch)
tree952c787e53665701389ca1fe666f19e3d20b5f5b /test/parallel/test-util.js
parent1d79f572f170de918a186db7036290975ffb1bfc (diff)
downloadandroid-node-v8-d5637e67c9d01763c2cb4c202413b4d5890e0486.tar.gz
android-node-v8-d5637e67c9d01763c2cb4c202413b4d5890e0486.tar.bz2
android-node-v8-d5637e67c9d01763c2cb4c202413b4d5890e0486.zip
buffer: fix cyclic dependency with util
PR-URL: https://github.com/nodejs/io.js/pull/1988 Fixes: https://github.com/nodejs/io.js/issues/1987 Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'test/parallel/test-util.js')
-rw-r--r--test/parallel/test-util.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/parallel/test-util.js b/test/parallel/test-util.js
index 2795d3ecd6..79e104546b 100644
--- a/test/parallel/test-util.js
+++ b/test/parallel/test-util.js
@@ -71,6 +71,10 @@ assert.equal(true, util.isPrimitive(Infinity));
assert.equal(true, util.isPrimitive(NaN));
assert.equal(true, util.isPrimitive(Symbol('symbol')));
+// isBuffer
+assert.equal(false, util.isBuffer('foo'));
+assert.equal(true, util.isBuffer(new Buffer('foo')));
+
// _extend
assert.deepEqual(util._extend({a:1}), {a:1});
assert.deepEqual(util._extend({a:1}, []), {a:1});