File tree Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 3333 "@faker-js/faker" : " ^10.1.0" ,
3434 "@types/http-cache-semantics" : " ^4.0.4" ,
3535 "@types/node" : " ^24.9.1" ,
36- "@vitest/coverage-v8" : " ^4.0.3 " ,
36+ "@vitest/coverage-v8" : " ^4.0.4 " ,
3737 "rimraf" : " ^6.0.1" ,
3838 "tsup" : " ^8.5.0" ,
3939 "typescript" : " ^5.9.3" ,
40- "vitest" : " ^4.0.3 "
40+ "vitest" : " ^4.0.4 "
4141 },
4242 "dependencies" : {
4343 "cacheable" : " workspace:^" ,
Original file line number Diff line number Diff line change @@ -60,16 +60,20 @@ describe("Cacheable Net", () => {
6060 expect ( net . cache ) . toBe ( newCache ) ;
6161 } ) ;
6262
63- test ( "should fetch data using fetch method" , async ( ) => {
64- const cache = new Cacheable ( ) ;
65- const url = `${ testUrl } /get` ;
66- const options : FetchOptions = {
67- method : "GET" ,
68- cache,
69- } ;
70- const response = await fetch ( url , options ) ;
71- expect ( response ) . toBeDefined ( ) ;
72- } ) ;
63+ test (
64+ "should fetch data using fetch method" ,
65+ async ( ) => {
66+ const cache = new Cacheable ( ) ;
67+ const url = `${ testUrl } /get` ;
68+ const options : FetchOptions = {
69+ method : "GET" ,
70+ cache,
71+ } ;
72+ const response = await fetch ( url , options ) ;
73+ expect ( response ) . toBeDefined ( ) ;
74+ } ,
75+ testTimeout ,
76+ ) ;
7377
7478 test (
7579 "should fetch data using CacheableNet fetch method" ,
You can’t perform that action at this time.
0 commit comments