]> zoso.dev Git - buffer.git/commitdiff
Don't rely on Buffer global in tests
authorFeross Aboukhadijeh <feross@feross.org>
Wed, 11 Dec 2013 01:33:32 +0000 (17:33 -0800)
committerFeross Aboukhadijeh <feross@feross.org>
Wed, 11 Dec 2013 01:33:32 +0000 (17:33 -0800)
test/basic.js

index 5845dcdab873d8d07e89135141f3fff9e2cbf451..4e967534ef126990e0c2efb740d26b7ede471fea 100644 (file)
@@ -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()
 })