From 9742ff3fe1835fb2166c3d56e30827b2ed45299e Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Tue, 10 Dec 2013 17:33:32 -0800 Subject: [PATCH] Don't rely on Buffer global in tests --- test/basic.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/basic.js b/test/basic.js index 5845dcd..4e96753 100644 --- a/test/basic.js +++ b/test/basic.js @@ -5,7 +5,7 @@ test('new buffer from array', function (t) { t.plan(1) t.equal( new B([1, 2, 3]).toString(), - new Buffer([1, 2, 3]).toString() + '\u0001\u0002\u0003' ) t.end() }) @@ -14,7 +14,7 @@ test('new buffer from string', function (t) { t.plan(1) t.equal( new B('hey', 'utf8').toString(), - new Buffer('hey', 'utf8').toString() + 'hey' ) t.end() }) -- 2.34.1