Skip to content
This repository was archived by the owner on Nov 9, 2023. It is now read-only.

Commit 45afa51

Browse files
committed
unit test for when no stream options
1 parent 4edb9cc commit 45afa51

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/index.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ describe('createEngineStream', () => {
8282
stream.write(req);
8383
});
8484
});
85+
86+
it('throw error when engine stream options not available', async () => {
87+
expect(() => {
88+
createEngineStream({} as any);
89+
}).toThrow('Missing engine parameter!');
90+
});
8591
});
8692

8793
describe('middleware and engine to stream', () => {

0 commit comments

Comments
 (0)