From: Feross Aboukhadijeh Date: Fri, 12 Sep 2014 00:12:11 +0000 (+0100) Subject: fix test X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=4b232195494cb222ca2bf359820f44967d0b2bef;p=buffer.git fix test --- diff --git a/index.js b/index.js index 771ca0a..c8877a3 100644 --- a/index.js +++ b/index.js @@ -540,7 +540,6 @@ function checkOffset (offset, ext, length) { throw new RangeError('offset is not uint') if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length') - console.log('suces') } Buffer.prototype.readUInt8 = function (offset, noAssert) { diff --git a/test/write.js b/test/write.js index c456b61..6170a47 100644 --- a/test/write.js +++ b/test/write.js @@ -1,4 +1,4 @@ -var B = require('buffer').Buffer +var B = require('../').Buffer var test = require('tape') if (process.env.OBJECT_IMPL) B.TYPED_ARRAY_SUPPORT = false