dieumercimvemba's picture
download
raw
545 Bytes
'use strict'
const { test } = require('tap')
const { join } = require('path')
const ThreadStream = require('..')
test('ignores worker messages without a protocol code', function (t) {
t.plan(2)
const stream = new ThreadStream({
filename: join(__dirname, 'message-without-code.js'),
sync: false
})
const errors = []
stream.on('error', err => {
errors.push(err)
})
stream.on('ready', () => {
t.ok(stream.write('hello world\n'))
stream.end()
})
stream.on('finish', () => {
t.same(errors, [])
})
})

Xet Storage Details

Size:
545 Bytes
·
Xet hash:
4a24910d10afe8edb33135365eb1a2c70888848256a9ed5229a9d64caa8dc54b

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.