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

Version Path
reed_sdk-1.0.1 node_modules/bl/test/convert.js
reed_sdk-1.0.0 node_modules/bl/test/convert.js
isomorfeus-puppetmaster-0.5.5 node_modules/bl/test/convert.js
isomorfeus-puppetmaster-0.5.4 node_modules/bl/test/convert.js
isomorfeus-puppetmaster-0.5.3 node_modules/bl/test/convert.js
isomorfeus-puppetmaster-0.5.2 node_modules/bl/test/convert.js
isomorfeus-puppetmaster-0.5.1 node_modules/bl/test/convert.js
isomorfeus-puppetmaster-0.5.0 node_modules/bl/test/convert.js