backend-common: fix type error

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-08-23 20:26:56 +02:00
parent de42eebaaf
commit 47d73e401f
@@ -78,7 +78,9 @@ describe('ReadUrlResponseFactory', () => {
let readable: NodeJS.ReadableStream;
beforeEach(() => {
readable = new Stream({ encoding: 'utf-8' }) as NodeJS.ReadableStream;
readable = new Stream({
encoding: 'utf-8',
}) as unknown as NodeJS.ReadableStream;
readable.readable = true;
// Write data asynchronously, as soon as possible.