99import {
1010 createTestEvent ,
1111 createTestEventV2 ,
12- MockResponseStream ,
12+ ResponseStream ,
1313} from '../helpers.js' ;
1414
1515describe . each ( [
@@ -22,7 +22,7 @@ describe.each([
2222 app . get ( '/test' , async ( ) => ( { message : 'Hello, World!' } ) ) ;
2323
2424 const handler = streamify ( app ) ;
25- const responseStream = new MockResponseStream ( ) ;
25+ const responseStream = new ResponseStream ( ) ;
2626
2727 // Act
2828 const result = await handler (
@@ -47,7 +47,7 @@ describe.each([
4747 } ) ;
4848
4949 const handler = streamify ( app ) ;
50- const responseStream = new MockResponseStream ( ) ;
50+ const responseStream = new ResponseStream ( ) ;
5151
5252 // Act
5353 const result = await handler (
@@ -65,7 +65,7 @@ describe.each([
6565 // Prepare
6666 const app = new Router ( ) ;
6767 const handler = streamify ( app ) ;
68- const responseStream = new MockResponseStream ( ) ;
68+ const responseStream = new ResponseStream ( ) ;
6969
7070 // Act
7171 const result = await handler (
@@ -93,7 +93,7 @@ describe.each([
9393 app . get ( '/test' , ( ) => ( { message : 'middleware test' } ) ) ;
9494
9595 const handler = streamify ( app ) ;
96- const responseStream = new MockResponseStream ( ) ;
96+ const responseStream = new ResponseStream ( ) ;
9797
9898 // Act
9999 const result = await handler (
@@ -116,7 +116,7 @@ describe.each([
116116 } ) ;
117117
118118 const handler = streamify ( app ) ;
119- const responseStream = new MockResponseStream ( ) ;
119+ const responseStream = new ResponseStream ( ) ;
120120
121121 // Act
122122 const result = await handler (
@@ -145,7 +145,7 @@ describe.each([
145145 } ) ;
146146
147147 const handler = streamify ( app ) ;
148- const responseStream = new MockResponseStream ( ) ;
148+ const responseStream = new ResponseStream ( ) ;
149149
150150 // Act
151151 const result = await handler (
@@ -193,7 +193,7 @@ describe.each([
193193 const app = new Router ( ) ;
194194 app . get ( '/test' , handlerFn ) ;
195195 const handler = streamify ( app ) ;
196- const responseStream = new MockResponseStream ( ) ;
196+ const responseStream = new ResponseStream ( ) ;
197197
198198 // Act
199199 const result = await handler (
@@ -212,7 +212,7 @@ describe.each([
212212 const app = new Router ( ) ;
213213 app . get ( '/test' , ( ) => new Response ( null , { status : 204 } ) ) ;
214214 const handler = streamify ( app ) ;
215- const responseStream = new MockResponseStream ( ) ;
215+ const responseStream = new ResponseStream ( ) ;
216216
217217 // Act
218218 const result = await handler (
@@ -231,7 +231,7 @@ describe.each([
231231 const app = new Router ( ) ;
232232 app . get ( '/test' , ( ) => new Response ( undefined , { status : 200 } ) ) ;
233233 const handler = streamify ( app ) ;
234- const responseStream = new MockResponseStream ( ) ;
234+ const responseStream = new ResponseStream ( ) ;
235235
236236 // Act
237237 const result = await handler (
@@ -256,7 +256,7 @@ describe.each([
256256
257257 app . get ( '/test' , ( ) => new Response ( errorStream , { status : 200 } ) ) ;
258258 const handler = streamify ( app ) ;
259- const responseStream = new MockResponseStream ( ) ;
259+ const responseStream = new ResponseStream ( ) ;
260260
261261 // Act & Assess
262262 await expect (
@@ -275,7 +275,7 @@ describe.each([
275275 } ) ;
276276
277277 const handler = streamify ( app ) ;
278- const responseStream = new MockResponseStream ( ) ;
278+ const responseStream = new ResponseStream ( ) ;
279279
280280 // Act
281281 const result = await handler (
@@ -299,7 +299,7 @@ describe.each([
299299 } ) ;
300300
301301 const handler = streamify ( app ) ;
302- const responseStream = new MockResponseStream ( ) ;
302+ const responseStream = new ResponseStream ( ) ;
303303
304304 // Act
305305 const result = await handler (
@@ -323,7 +323,7 @@ describe.each([
323323 const app = new Router ( ) ;
324324 const handler = streamify ( app ) ;
325325 const invalidEvent = { invalid : 'event' } ;
326- const responseStream = new MockResponseStream ( ) ;
326+ const responseStream = new ResponseStream ( ) ;
327327
328328 // Act & Assess
329329 await expect (
@@ -344,7 +344,7 @@ describe.each([
344344 } ) ) ;
345345
346346 const handler = streamify ( app ) ;
347- const responseStream = new MockResponseStream ( ) ;
347+ const responseStream = new ResponseStream ( ) ;
348348
349349 // Act
350350 const result = await handler (
0 commit comments