From 611ae1e0b1848be8213875d4f17dce200e553282 Mon Sep 17 00:00:00 2001 From: OriLev Date: Wed, 21 Jun 2017 21:40:25 +0300 Subject: [PATCH] test: remove require('buffer') from 4 buffer tests Remove superfluous import from: * test/parallel/test-buffer-alloc.js * test/parallel/test-buffer-arraybuffer.js * test/parallel/test-buffer-badhex.js * test/parallel/test-buffer-bytelength.js Refs: https://github.com/nodejs/node/issues/13836 PR-URL: https://github.com/nodejs/node/pull/13855 Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: Vse Mozhet Byt Reviewed-By: Alexey Orlenko Reviewed-By: James M Snell --- test/parallel/test-buffer-alloc.js | 1 - test/parallel/test-buffer-arraybuffer.js | 1 - test/parallel/test-buffer-badhex.js | 1 - test/parallel/test-buffer-bytelength.js | 1 - 4 files changed, 4 deletions(-) diff --git a/test/parallel/test-buffer-alloc.js b/test/parallel/test-buffer-alloc.js index 7ebe34b21edb1e..39ce4c4a928109 100644 --- a/test/parallel/test-buffer-alloc.js +++ b/test/parallel/test-buffer-alloc.js @@ -3,7 +3,6 @@ const common = require('../common'); const assert = require('assert'); const vm = require('vm'); -const Buffer = require('buffer').Buffer; const SlowBuffer = require('buffer').SlowBuffer; const b = Buffer.allocUnsafe(1024); diff --git a/test/parallel/test-buffer-arraybuffer.js b/test/parallel/test-buffer-arraybuffer.js index 8f32a2de3c8971..d1e6eaa07033c4 100644 --- a/test/parallel/test-buffer-arraybuffer.js +++ b/test/parallel/test-buffer-arraybuffer.js @@ -3,7 +3,6 @@ require('../common'); const assert = require('assert'); -const Buffer = require('buffer').Buffer; const LENGTH = 16; const ab = new ArrayBuffer(LENGTH); diff --git a/test/parallel/test-buffer-badhex.js b/test/parallel/test-buffer-badhex.js index c3d151ba18c694..94de97181d38e0 100644 --- a/test/parallel/test-buffer-badhex.js +++ b/test/parallel/test-buffer-badhex.js @@ -1,7 +1,6 @@ 'use strict'; require('../common'); const assert = require('assert'); -const Buffer = require('buffer').Buffer; // Test hex strings and bad hex strings { diff --git a/test/parallel/test-buffer-bytelength.js b/test/parallel/test-buffer-bytelength.js index 9bb3b759e0208f..17fe2931aa8585 100644 --- a/test/parallel/test-buffer-bytelength.js +++ b/test/parallel/test-buffer-bytelength.js @@ -2,7 +2,6 @@ require('../common'); const assert = require('assert'); -const Buffer = require('buffer').Buffer; const SlowBuffer = require('buffer').SlowBuffer; const vm = require('vm');