File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed 
packages/tests-unit/tests/adapters Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -505,7 +505,7 @@ describe("CacheHandler", () => {
505505
506506      expect ( globalThis . tagCache . getByTag ) . toHaveBeenCalledWith ( "tag" ) ; 
507507
508-       expect ( tagCache . writeTags ) . toHaveBeenCalled ( ) ; 
508+       expect ( tagCache . writeTags ) . toHaveBeenCalledTimes ( 1 ) ; 
509509      expect ( tagCache . writeTags ) . toHaveBeenCalledWith ( [ 
510510        { 
511511          path : "/path" , 
@@ -519,7 +519,7 @@ describe("CacheHandler", () => {
519519      globalThis . tagCache . getByPath . mockResolvedValueOnce ( [ ] ) ; 
520520      await  cache . revalidateTag ( "_N_T_/path" ) ; 
521521
522-       expect ( tagCache . writeTags ) . toHaveBeenCalled ( ) ; 
522+       expect ( tagCache . writeTags ) . toHaveBeenCalledTimes ( 1 ) ; 
523523      expect ( tagCache . writeTags ) . toHaveBeenCalledWith ( [ 
524524        { 
525525          path : "/path" , 
@@ -534,7 +534,7 @@ describe("CacheHandler", () => {
534534      globalThis . tagCache . getByTag . mockResolvedValueOnce ( [ "123456" ] ) ; 
535535      await  cache . revalidateTag ( "tag" ) ; 
536536
537-       expect ( tagCache . writeTags ) . toHaveBeenCalled ( ) ; 
537+       expect ( tagCache . writeTags ) . toHaveBeenCalledTimes ( 1 ) ; 
538538      expect ( tagCache . writeTags ) . toHaveBeenCalledWith ( [ 
539539        { 
540540          path : "123456" , 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments