Sha256: 8f53ff4881443e25976313de40c5974e984016f364d0cac1c71425b13b000090
Contents?: true
Size: 609 Bytes
Versions: 8
Compression:
Stored size: 609 Bytes
Contents
'use strict' const tape = require('tape') const { BufferList, BufferListStream } = require('../') const { Buffer } = require('buffer') tape('convert from BufferList to BufferListStream', (t) => { const data = Buffer.from(`TEST-${Date.now()}`) const bl = new BufferList(data) const bls = new BufferListStream(bl) t.ok(bl.slice().equals(bls.slice())) t.end() }) tape('convert from BufferListStream to BufferList', (t) => { const data = Buffer.from(`TEST-${Date.now()}`) const bls = new BufferListStream(data) const bl = new BufferList(bls) t.ok(bl.slice().equals(bls.slice())) t.end() })
Version data entries
8 entries across 8 versions & 2 rubygems