CARVIEW |
Select Language
HTTP/2 200
server: GitHub.com
content-type: text/html; charset=utf-8
last-modified: Wed, 23 Sep 2020 07:57:12 GMT
access-control-allow-origin: *
etag: W/"5f6affd8-25e3"
expires: Sun, 12 Oct 2025 02:55:27 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: 35CB:55BB9:96C6:D7C7:68EB1647
accept-ranges: bytes
age: 0
date: Sun, 12 Oct 2025 02:45:27 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210021-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1760237127.175333,VS0,VE307
vary: Accept-Encoding
x-fastly-request-id: 35b8543e4b0872ab7b3e2f337d5e5d5231b4b182
content-length: 1934
unexpected-stream
Unexpected-stream
Node.js stream plugin for the Unexpected assertion library (version 7+ required).
var base64Stream = require('base64-stream');
return expect(
['Zm9vYm', 'FyCg=='],
'when piped through',
new base64Stream.Base64Decode(),
'to yield output satisfying',
Buffer.from([0x66, 0x6f, 0x6f])
);
expected [ 'Zm9vYm', 'FyCg==' ]
when piped through Base64Decode to yield output satisfying Buffer.from([0x66, 0x6F, 0x6F])
expected Base64Decode to yield output satisfying Buffer.from([0x66, 0x6F, 0x6F])
expected Buffer.from([0x66, 0x6F, 0x6F, 0x62, 0x61, 0x72, 0x0A])
to equal Buffer.from([0x66, 0x6F, 0x6F])
66 6F 6F 62 61 72 0A │foobar.│
66 6F 6F │foo│
return expect(
require('fs').createReadStream('README.md', { encoding: 'utf-8' }),
'to yield output satisfying',
/Node\.js stream plugin/
);
License
Unexpected-stream is licensed under a standard 3-clause BSD license -- see
the LICENSE
file for details.