Browse Source

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 <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
v6
OriLev 8 years ago
committed by Alexey Orlenko
parent
commit
22ccbe6f96
No known key found for this signature in database GPG Key ID: 81255941FDDB24ED
  1. 4
      test/parallel/test-buffer-alloc.js
  2. 1
      test/parallel/test-buffer-arraybuffer.js
  3. 1
      test/parallel/test-buffer-badhex.js
  4. 1
      test/parallel/test-buffer-bytelength.js

4
test/parallel/test-buffer-alloc.js

@ -3,9 +3,7 @@ const common = require('../common');
const assert = require('assert');
const vm = require('vm');
const buffer = require('buffer');
const Buffer = buffer.Buffer;
const SlowBuffer = buffer.SlowBuffer;
const SlowBuffer = require('buffer').SlowBuffer;
const b = Buffer.allocUnsafe(1024);

1
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);

1
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
{

1
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');

Loading…
Cancel
Save