mirror of
				https://github.com/actions/cache.git
				synced 2025-10-23 08:56:26 +08:00 
			
		
		
		
	Release v1.0.3
This commit is contained in:
		| @@ -162,6 +162,16 @@ test("getCacheState with valid state", () => { | ||||
|     expect(getStateMock).toHaveBeenCalledTimes(1); | ||||
| }); | ||||
|  | ||||
| test("logWarning logs a message with a warning prefix", () => { | ||||
|     const message = "A warning occurred."; | ||||
|  | ||||
|     const infoMock = jest.spyOn(core, "info"); | ||||
|  | ||||
|     actionUtils.logWarning(message); | ||||
|  | ||||
|     expect(infoMock).toHaveBeenCalledWith(`[warning]${message}`); | ||||
| }); | ||||
|  | ||||
| test("isValidEvent returns false for unknown event", () => { | ||||
|     const event = "foo"; | ||||
|     process.env[Events.Key] = event; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user