mirror of
https://github.com/actions/cache.git
synced 2025-06-18 23:02:57 -06:00
Fixed test cases
This commit is contained in:
parent
5b7eeecaeb
commit
667e98af5a
7 changed files with 47 additions and 13 deletions
|
@ -43,10 +43,15 @@ export class NullStateProvider extends StateProviderBase {
|
|||
]);
|
||||
|
||||
setState = (key: string, value: string) => {
|
||||
core.setOutput(this.stateToOutputMap.get(key) as string, value);
|
||||
if (this.stateToOutputMap.has(key)) {
|
||||
core.setOutput(this.stateToOutputMap.get(key) as string, value);
|
||||
}
|
||||
};
|
||||
|
||||
getState = (key: string) => {
|
||||
if (!this.stateToInputMap.has(key)) {
|
||||
return "";
|
||||
}
|
||||
return core.getInput(this.stateToInputMap.get(key) as string);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue