mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-13 15:36:25 +00:00
6ea0d5d6fb
Co-authored-by: Michael Kriese <michael.kriese@visualon.de> Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com> Co-authored-by: Rhys Arkins <rhys@arkins.net>
11 lines
315 B
TypeScript
11 lines
315 B
TypeScript
import { Readable } from 'stream';
|
|
import { streamToString } from './streams';
|
|
|
|
describe('util/streams', () => {
|
|
describe('streamToString', () => {
|
|
it('handles Readables', async () => {
|
|
const res = await streamToString(Readable.from(['abc', 'zxc']));
|
|
expect(res).toBe('abczxc');
|
|
});
|
|
});
|
|
});
|