@@ -8,7 +8,13 @@ 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 = {
12+ title : "title" ,
13+ rating : 1.1 ,
14+ metadata : "metadata" ,
15+ more_metadata : "more_metadata" ,
16+ rank : 1 ,
17+ } ;
1218 const rawResponseBody = "string" ;
1319 server
1420 . mockEndpoint ( )
@@ -22,6 +28,9 @@ describe("Imdb", () => {
2228 const response = await client . imdb . createMovie ( {
2329 title : "title" ,
2430 rating : 1.1 ,
31+ metadata : "metadata" ,
32+ more_metadata : "more_metadata" ,
33+ rank : 1 ,
2534 } ) ;
2635 expect ( response ) . toEqual ( "string" ) ;
2736 } ) ;
@@ -34,8 +43,8 @@ describe("Imdb", () => {
3443 id : "tt0111161" ,
3544 title : "The Shawshank Redemption" ,
3645 rating : 9.3 ,
37- description : "A story of hope and redemption." ,
3846 metadata : "hey" ,
47+ rank : 1 ,
3948 } ;
4049 server . mockEndpoint ( ) . get ( "/movies/tt0111161" ) . respondWith ( ) . statusCode ( 200 ) . jsonBody ( rawResponseBody ) . build ( ) ;
4150
@@ -44,8 +53,8 @@ describe("Imdb", () => {
4453 id : "tt0111161" ,
4554 title : "The Shawshank Redemption" ,
4655 rating : 9.3 ,
47- description : "A story of hope and redemption." ,
4856 metadata : "hey" ,
57+ rank : 1 ,
4958 } ) ;
5059 } ) ;
5160
0 commit comments