@@ -9,8 +9,8 @@ const client = new Kernel({
99
1010describe ( 'resource browsers' , ( ) => {
1111 // skipped: tests are disabled for the time being
12- test . skip ( 'create: only required params ' , async ( ) => {
13- const responsePromise = client . browsers . create ( { invocation_id : 'rr33xuugxj9h0bkf1rdt2bet' } ) ;
12+ test . skip ( 'create' , async ( ) => {
13+ const responsePromise = client . browsers . create ( ) ;
1414 const rawResponse = await responsePromise . asResponse ( ) ;
1515 expect ( rawResponse ) . toBeInstanceOf ( Response ) ;
1616 const response = await responsePromise ;
@@ -21,12 +21,18 @@ describe('resource browsers', () => {
2121 } ) ;
2222
2323 // skipped: tests are disabled for the time being
24- test . skip ( 'create: required and optional params' , async ( ) => {
25- const response = await client . browsers . create ( {
26- invocation_id : 'rr33xuugxj9h0bkf1rdt2bet' ,
27- persistence : { id : 'my-awesome-browser-for-user-1234' } ,
28- stealth : true ,
29- } ) ;
24+ test . skip ( 'create: request options and params are passed correctly' , async ( ) => {
25+ // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
26+ await expect (
27+ client . browsers . create (
28+ {
29+ invocation_id : 'rr33xuugxj9h0bkf1rdt2bet' ,
30+ persistence : { id : 'my-awesome-browser-for-user-1234' } ,
31+ stealth : true ,
32+ } ,
33+ { path : '/_stainless_unknown_path' } ,
34+ ) ,
35+ ) . rejects . toThrow ( Kernel . NotFoundError ) ;
3036 } ) ;
3137
3238 // skipped: tests are disabled for the time being
0 commit comments