@@ -6,8 +6,8 @@ import { Response } from 'node-fetch';
6
6
const onebusaway = new Onebusaway ( { baseURL : process . env [ 'TEST_API_BASE_URL' ] ?? 'http://127.0.0.1:4010' } ) ;
7
7
8
8
describe ( 'resource stopsForLocation' , ( ) => {
9
- test ( 'list ' , async ( ) => {
10
- const responsePromise = onebusaway . stopsForLocation . list ( ) ;
9
+ test ( 'retrieve ' , async ( ) => {
10
+ const responsePromise = onebusaway . stopsForLocation . retrieve ( ) ;
11
11
const rawResponse = await responsePromise . asResponse ( ) ;
12
12
expect ( rawResponse ) . toBeInstanceOf ( Response ) ;
13
13
const response = await responsePromise ;
@@ -17,17 +17,17 @@ describe('resource stopsForLocation', () => {
17
17
expect ( dataAndResponse . response ) . toBe ( rawResponse ) ;
18
18
} ) ;
19
19
20
- test ( 'list : request options instead of params are passed correctly' , async ( ) => {
20
+ test ( 'retrieve : request options instead of params are passed correctly' , async ( ) => {
21
21
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
22
- await expect ( onebusaway . stopsForLocation . list ( { path : '/_stainless_unknown_path' } ) ) . rejects . toThrow (
22
+ await expect ( onebusaway . stopsForLocation . retrieve ( { path : '/_stainless_unknown_path' } ) ) . rejects . toThrow (
23
23
Onebusaway . NotFoundError ,
24
24
) ;
25
25
} ) ;
26
26
27
- test ( 'list : request options and params are passed correctly' , async ( ) => {
27
+ test ( 'retrieve : request options and params are passed correctly' , async ( ) => {
28
28
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
29
29
await expect (
30
- onebusaway . stopsForLocation . list (
30
+ onebusaway . stopsForLocation . retrieve (
31
31
{ key : 'string' , lat : 0 , lon : 0 } ,
32
32
{ path : '/_stainless_unknown_path' } ,
33
33
) ,
0 commit comments