@@ -1346,7 +1346,7 @@ describe("JUnit multipart endpoint", () => {
13461346 expect ( parts [ 1 ] . filename ) . toEqual ( "info.json" ) ;
13471347 expect ( parts [ 1 ] . type ) . toEqual ( "application/json" ) ;
13481348 expect ( parts [ 1 ] . data . toString ( "utf-8" ) ) . toEqual (
1349- reportConfig . testExecInfo . toString ( "utf-8" )
1349+ JSON . stringify ( reportConfig . testExecInfo )
13501350 ) ;
13511351 } catch ( error : any ) {
13521352 throw error ;
@@ -1561,7 +1561,7 @@ describe("TestNG multipart endpoint", () => {
15611561 expect ( parts [ 1 ] . filename ) . toEqual ( "info.json" ) ;
15621562 expect ( parts [ 1 ] . type ) . toEqual ( "application/json" ) ;
15631563 expect ( parts [ 1 ] . data . toString ( "utf-8" ) ) . toEqual (
1564- reportConfig . testExecInfo . toString ( "utf-8" )
1564+ JSON . stringify ( reportConfig . testExecInfo )
15651565 ) ;
15661566 } catch ( error : any ) {
15671567 throw error ;
@@ -1776,7 +1776,7 @@ describe("Nunit multipart endpoint", () => {
17761776 expect ( parts [ 1 ] . filename ) . toEqual ( "info.json" ) ;
17771777 expect ( parts [ 1 ] . type ) . toEqual ( "application/json" ) ;
17781778 expect ( parts [ 1 ] . data . toString ( "utf-8" ) ) . toEqual (
1779- reportConfig . testExecInfo . toString ( "utf-8" )
1779+ JSON . stringify ( reportConfig . testExecInfo )
17801780 ) ;
17811781 } catch ( error : any ) {
17821782 throw error ;
@@ -1994,7 +1994,7 @@ describe("xunit multipart endpoint", () => {
19941994 expect ( parts [ 1 ] . filename ) . toEqual ( "info.json" ) ;
19951995 expect ( parts [ 1 ] . type ) . toEqual ( "application/json" ) ;
19961996 expect ( parts [ 1 ] . data . toString ( "utf-8" ) ) . toEqual (
1997- reportConfig . testExecInfo . toString ( "utf-8" )
1997+ JSON . stringify ( reportConfig . testExecInfo )
19981998 ) ;
19991999 } catch ( error : any ) {
20002000 throw error ;
@@ -2209,7 +2209,7 @@ describe("Robot Framework multipart endpoint", () => {
22092209 expect ( parts [ 1 ] . filename ) . toEqual ( "info.json" ) ;
22102210 expect ( parts [ 1 ] . type ) . toEqual ( "application/json" ) ;
22112211 expect ( parts [ 1 ] . data . toString ( "utf-8" ) ) . toEqual (
2212- reportConfig . testExecInfo . toString ( "utf-8" )
2212+ JSON . stringify ( reportConfig . testExecInfo )
22132213 ) ;
22142214 } catch ( error : any ) {
22152215 throw error ;
@@ -2427,7 +2427,7 @@ describe("Cucumber multipart endpoint", () => {
24272427 expect ( parts [ 1 ] . filename ) . toEqual ( "info.json" ) ;
24282428 expect ( parts [ 1 ] . type ) . toEqual ( "application/json" ) ;
24292429 expect ( parts [ 1 ] . data . toString ( "utf-8" ) ) . toEqual (
2430- reportConfig . testExecInfo . toString ( "utf-8" )
2430+ JSON . stringify ( reportConfig . testExecInfo )
24312431 ) ;
24322432 } catch ( error : any ) {
24332433 throw error ;
@@ -2585,7 +2585,7 @@ describe("Behave multipart endpoint", () => {
25852585 expect ( parts [ 1 ] . filename ) . toEqual ( "info.json" ) ;
25862586 expect ( parts [ 1 ] . type ) . toEqual ( "application/json" ) ;
25872587 expect ( parts [ 1 ] . data . toString ( "utf-8" ) ) . toEqual (
2588- reportConfig . testExecInfo . toString ( "utf-8" )
2588+ JSON . stringify ( reportConfig . testExecInfo )
25892589 ) ;
25902590 } catch ( error : any ) {
25912591 throw error ;
@@ -2746,7 +2746,7 @@ describe("Xray JSON multipart endpoint", () => {
27462746 expect ( parts [ 1 ] . filename ) . toEqual ( "info.json" ) ;
27472747 expect ( parts [ 1 ] . type ) . toEqual ( "application/json" ) ;
27482748 expect ( parts [ 1 ] . data . toString ( "utf-8" ) ) . toEqual (
2749- reportConfig . testExecInfo . toString ( "utf-8" )
2749+ JSON . stringify ( reportConfig . testExecInfo )
27502750 ) ;
27512751 } catch ( error : any ) {
27522752 throw error ;
0 commit comments