@@ -79,7 +79,7 @@ test("setOutputAndState with exact match to set cache-hit output and state", ()
79
79
expect ( setOutputMock ) . toHaveBeenCalledWith ( Outputs . CacheHit , "true" ) ;
80
80
expect ( setOutputMock ) . toHaveBeenCalledTimes ( 1 ) ;
81
81
82
- expect ( saveStateMock ) . toHaveBeenCalledWith ( State . CacheResult , cacheKey ) ;
82
+ expect ( saveStateMock ) . toHaveBeenCalledWith ( State . CacheMatchedKey , cacheKey ) ;
83
83
expect ( saveStateMock ) . toHaveBeenCalledTimes ( 1 ) ;
84
84
} ) ;
85
85
@@ -95,7 +95,7 @@ test("setOutputAndState with no exact match to set cache-hit output and state",
95
95
expect ( setOutputMock ) . toHaveBeenCalledWith ( Outputs . CacheHit , "false" ) ;
96
96
expect ( setOutputMock ) . toHaveBeenCalledTimes ( 1 ) ;
97
97
98
- expect ( saveStateMock ) . toHaveBeenCalledWith ( State . CacheResult , cacheKey ) ;
98
+ expect ( saveStateMock ) . toHaveBeenCalledWith ( State . CacheMatchedKey , cacheKey ) ;
99
99
expect ( saveStateMock ) . toHaveBeenCalledTimes ( 1 ) ;
100
100
} ) ;
101
101
@@ -109,7 +109,7 @@ test("getCacheState with no state returns undefined", () => {
109
109
110
110
expect ( state ) . toBe ( undefined ) ;
111
111
112
- expect ( getStateMock ) . toHaveBeenCalledWith ( State . CacheResult ) ;
112
+ expect ( getStateMock ) . toHaveBeenCalledWith ( State . CacheMatchedKey ) ;
113
113
expect ( getStateMock ) . toHaveBeenCalledTimes ( 1 ) ;
114
114
} ) ;
115
115
@@ -125,7 +125,7 @@ test("getCacheState with valid state", () => {
125
125
126
126
expect ( state ) . toEqual ( cacheKey ) ;
127
127
128
- expect ( getStateMock ) . toHaveBeenCalledWith ( State . CacheResult ) ;
128
+ expect ( getStateMock ) . toHaveBeenCalledWith ( State . CacheMatchedKey ) ;
129
129
expect ( getStateMock ) . toHaveBeenCalledTimes ( 1 ) ;
130
130
} ) ;
131
131
0 commit comments