@@ -24,6 +24,7 @@ class AccessDenied extends ServiceException {
2424}
2525
2626describe ( 'server' , ( ) => {
27+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
2728 let originalEnv , app , server
2829 const lambdaMock = mockClient ( LambdaClient )
2930 const s3Mock = mockClient ( S3Client )
@@ -61,7 +62,8 @@ describe('server', () => {
6162 [ '/multi-cookies' , 200 , 'application/json; charset=utf-8' ] ,
6263 [ '/set-response-headers' , 200 , 'application/json; charset=utf-8' ] ,
6364 [ '/isolation' , 200 , 'application/json; charset=utf-8' ] ,
64- [ '/memtest' , 200 , 'application/json; charset=utf-8' ]
65+ [ '/memtest' , 200 , 'application/json; charset=utf-8' ] ,
66+ [ '/streaming-large' , 200 , 'application/json; charset=utf-8' ]
6567 ] ) ( 'Path %p should render correctly' , ( path , expectedStatus , expectedContentType ) => {
6668 return request ( app )
6769 . get ( path )
@@ -77,6 +79,10 @@ describe('server', () => {
7779 return request ( app ) . get ( '/cache/123' ) . expect ( 'Cache-Control' , 's-maxage=123' )
7880 } )
7981
82+ test ( 'All responses have Server header set to "mrt ref app"' , ( ) => {
83+ return request ( app ) . get ( '/' ) . expect ( 'Server' , 'mrt ref app' )
84+ } )
85+
8086 test ( 'Path "/headers" echoes request headers' , async ( ) => {
8187 const response = await request ( app ) . get ( '/headers' ) . set ( 'Random-Header' , 'random' )
8288
@@ -171,4 +177,10 @@ describe('server', () => {
171177 'This file is used in the E2E tests to verify that correct header values are set.'
172178 )
173179 } )
180+
181+ test ( 'Path "/streaming-large" returns streaming: false' , async ( ) => {
182+ const response = await request ( app ) . get ( '/streaming-large' )
183+ expect ( response . status ) . toBe ( 200 )
184+ expect ( response . body ) . toEqual ( { streaming : false } )
185+ } )
174186} )
0 commit comments