to yield chunks satisfying
- <Stream> to yield (output|chunks|objects) satisfying <assertion>
- <Stream> to yield (output|chunks|objects) satisfying <any+>
Asserts that a stream produces output chunks satisfying a spec.
The chunks are made available as an array with entries corresponding to the data
events emitted by the stream.
return expect(
require('fs').createReadStream('README.md'),
'to yield chunks satisfying',
[expect.it('when decoded as', 'ascii', 'to contain', 'stream plugin')]
);