Skip to content

Commit 1ef7340

Browse files
committed
update test
1 parent 36f3dbb commit 1ef7340

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

packages/kit/test/typings/endpoint.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,6 @@ export const readable_stream_body: RequestHandler = () => {
5151
};
5252
};
5353

54-
// valid - body instance of stream.Readable should be allowed
55-
export const stream_readable_body: RequestHandler = async () => {
56-
const { Readable } = await import('stream');
57-
return {
58-
body: new Readable()
59-
};
60-
};
61-
6254
// valid - different header pairs should be allowed
6355
export const differential_headers_assignment: RequestHandler = () => {
6456
if (Math.random() < 0.5) {
@@ -193,3 +185,11 @@ export const error_nested_instances: RequestHandler = () => {
193185
body: { typed: new Uint8Array() }
194186
};
195187
};
188+
189+
// @ts-expect-error - instances cannot be nested
190+
export const stream_readable_body: RequestHandler = async () => {
191+
const { Readable } = await import('stream');
192+
return {
193+
body: new Readable()
194+
};
195+
};

0 commit comments

Comments
 (0)