mirror of
				https://code.forgejo.org/actions/cache.git
				synced 2025-11-03 22:09:10 +00:00 
			
		
		
		
	Linting errors fixed
This commit is contained in:
		
							parent
							
								
									770b3a8151
								
							
						
					
					
						commit
						3f0eaf4956
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -25,7 +25,7 @@ afterEach(() => {
 | 
			
		|||
});
 | 
			
		||||
 | 
			
		||||
test("StateProvider saves states", async () => {
 | 
			
		||||
    let states = new Map<string, string>();
 | 
			
		||||
    const states = new Map<string, string>();
 | 
			
		||||
    const getStateMock = jest
 | 
			
		||||
        .spyOn(core, "getState")
 | 
			
		||||
        .mockImplementation(key => states.get(key) || "");
 | 
			
		||||
| 
						 | 
				
			
			@ -47,8 +47,8 @@ test("StateProvider saves states", async () => {
 | 
			
		|||
    const stateProvider: IStateProvider = new StateProvider();
 | 
			
		||||
    stateProvider.setState("stateKey", "stateValue");
 | 
			
		||||
    stateProvider.setState(State.CacheMatchedKey, cacheMatchedKey);
 | 
			
		||||
    let stateValue = stateProvider.getState("stateKey");
 | 
			
		||||
    let cacheStateValue = stateProvider.getCacheState();
 | 
			
		||||
    const stateValue = stateProvider.getState("stateKey");
 | 
			
		||||
    const cacheStateValue = stateProvider.getCacheState();
 | 
			
		||||
 | 
			
		||||
    expect(stateValue).toBe("stateValue");
 | 
			
		||||
    expect(cacheStateValue).toBe(cacheMatchedKey);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue