@@ -10,7 +10,7 @@ const client = new Gitpod({
10
10
describe ( 'resource pats' , ( ) => {
11
11
// skipped: tests are disabled for the time being
12
12
test . skip ( 'list' , async ( ) => {
13
- const responsePromise = client . users . pats . list ( { } ) ;
13
+ const responsePromise = client . users . pats . list ( ) ;
14
14
const rawResponse = await responsePromise . asResponse ( ) ;
15
15
expect ( rawResponse ) . toBeInstanceOf ( Response ) ;
16
16
const response = await responsePromise ;
@@ -20,6 +20,22 @@ describe('resource pats', () => {
20
20
expect ( dataAndResponse . response ) . toBe ( rawResponse ) ;
21
21
} ) ;
22
22
23
+ // skipped: tests are disabled for the time being
24
+ test . skip ( 'list: 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 . users . pats . list (
28
+ {
29
+ token : 'token' ,
30
+ pageSize : 0 ,
31
+ filter : { userIds : [ '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' ] } ,
32
+ pagination : { token : 'token' , pageSize : 100 } ,
33
+ } ,
34
+ { path : '/_stainless_unknown_path' } ,
35
+ ) ,
36
+ ) . rejects . toThrow ( Gitpod . NotFoundError ) ;
37
+ } ) ;
38
+
23
39
// skipped: tests are disabled for the time being
24
40
test . skip ( 'delete' , async ( ) => {
25
41
const responsePromise = client . users . pats . delete ( { } ) ;
0 commit comments