mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 07:38:37 +08:00 
			
		
		
		
	Fix mock name
This commit is contained in:
		
							parent
							
								
									faaa3912ca
								
							
						
					
					
						commit
						d776be4564
					
				| 
						 | 
					@ -500,7 +500,7 @@ test("restore with save-always set", async () => {
 | 
				
			||||||
        saveAlways: true
 | 
					        saveAlways: true
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const setCacheHitOutputMock = jest.spyOn(core, "setOutput");
 | 
					    const setSaveAlwaysOutputMock = jest.spyOn(core, "setOutput");
 | 
				
			||||||
    const restoreCacheMock = jest
 | 
					    const restoreCacheMock = jest
 | 
				
			||||||
        .spyOn(cache, "restoreCache")
 | 
					        .spyOn(cache, "restoreCache")
 | 
				
			||||||
        .mockImplementationOnce(() => {
 | 
					        .mockImplementationOnce(() => {
 | 
				
			||||||
| 
						 | 
					@ -520,8 +520,8 @@ test("restore with save-always set", async () => {
 | 
				
			||||||
        false
 | 
					        false
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    expect(setCacheHitOutputMock).toHaveBeenCalledTimes(1);
 | 
					    expect(setSaveAlwaysOutputMock).toHaveBeenCalledTimes(1);
 | 
				
			||||||
    expect(setCacheHitOutputMock).toHaveBeenCalledWith(
 | 
					    expect(setSaveAlwaysOutputMock).toHaveBeenCalledWith(
 | 
				
			||||||
        "save-always-d18d746b9",
 | 
					        "save-always-d18d746b9",
 | 
				
			||||||
        "true"
 | 
					        "true"
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user