@@ -115,14 +115,14 @@ describe('networkFormatter', () => {
115115
116116 assert . strictEqual ( result , 'test' ) ;
117117 } ) ;
118- it ( 'shows empty string when no postData available' , async ( ) => {
118+ it ( 'shows not available when no postData available' , async ( ) => {
119119 const request = getMockRequest ( {
120120 hasPostData : false ,
121121 } ) ;
122122
123123 const result = await getFormattedRequestBody ( request , 200 ) ;
124124
125- assert . strictEqual ( result , undefined ) ;
125+ assert . strictEqual ( result , '<not available anymore>' ) ;
126126 } ) ;
127127 it ( 'shows request body when postData is available' , async ( ) => {
128128 const request = getMockRequest ( {
@@ -164,7 +164,7 @@ describe('networkFormatter', () => {
164164
165165 assert . strictEqual ( result , 'some text that is lo... <truncated>' ) ;
166166 } ) ;
167- it ( 'shows nothing on exception' , async ( ) => {
167+ it ( 'shows not available on exception' , async ( ) => {
168168 const request = getMockRequest ( {
169169 hasPostData : true ,
170170 postData : undefined ,
@@ -173,7 +173,7 @@ describe('networkFormatter', () => {
173173
174174 const result = await getFormattedRequestBody ( request , 200 ) ;
175175
176- assert . strictEqual ( result , undefined ) ;
176+ assert . strictEqual ( result , '<not available anymore>' ) ;
177177 } ) ;
178178 } ) ;
179179
0 commit comments