0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 05:28:35 +00:00
renovatebot_renovate/lib/util/streams.spec.ts
2023-03-28 21:05:36 +00:00

12 lines
320 B
TypeScript

import { Readable } from 'node: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');
});
});
});