@@ -8,7 +8,7 @@ describe("Imdb", () => {
88 test ( "createMovie" , async ( ) => {
99 const server = mockServerPool . createServer ( ) ;
1010 const client = new FernAutopilotTestApiClient ( { environment : server . baseUrl } ) ;
11- const rawRequestBody = { title : "title" , rating : 1.1 } ;
11+ const rawRequestBody = { title : "title" , rating : 1.1 , metadata : "metadata" , more_metadata : "more_metadata" } ;
1212 const rawResponseBody = "string" ;
1313 server
1414 . mockEndpoint ( )
@@ -22,6 +22,8 @@ describe("Imdb", () => {
2222 const response = await client . imdb . createMovie ( {
2323 title : "title" ,
2424 rating : 1.1 ,
25+ metadata : "metadata" ,
26+ more_metadata : "more_metadata" ,
2527 } ) ;
2628 expect ( response ) . toEqual ( "string" ) ;
2729 } ) ;
@@ -34,8 +36,8 @@ describe("Imdb", () => {
3436 id : "tt0111161" ,
3537 title : "The Shawshank Redemption" ,
3638 rating : 9.3 ,
37- description : "A story of hope and redemption." ,
3839 metadata : "hey" ,
40+ rank : 1 ,
3941 } ;
4042 server . mockEndpoint ( ) . get ( "/movies/tt0111161" ) . respondWith ( ) . statusCode ( 200 ) . jsonBody ( rawResponseBody ) . build ( ) ;
4143
@@ -44,8 +46,8 @@ describe("Imdb", () => {
4446 id : "tt0111161" ,
4547 title : "The Shawshank Redemption" ,
4648 rating : 9.3 ,
47- description : "A story of hope and redemption." ,
4849 metadata : "hey" ,
50+ rank : 1 ,
4951 } ) ;
5052 } ) ;
5153
0 commit comments