blob: a6b84c94b1785de0ce4a6932c6bcf442eb2f97d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
'use strict';
const assert = require('assert');
const { concat } = require('../lib/buffer-util');
describe('bufferUtil', () => {
describe('concat', () => {
it('never returns uninitialized data', () => {
const buf = concat([Buffer.from([1, 2]), Buffer.from([3, 4])], 6);
assert.ok(buf.equals(Buffer.from([1, 2, 3, 4])));
});
});
});
|