renovate/lib/util/streams.spec.ts
Kenneth Jorgensen 6ea0d5d6fb
feat(maven): S3 Support (#14938)
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>
2022-05-04 05:59:14 +02:00

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');
});
});
});