Fixed test cases

This commit is contained in:
Sankalp Kotewar
2023-01-03 10:22:38 +00:00
committed by GitHub
parent 5b7eeecaeb
commit 667e98af5a
7 changed files with 47 additions and 13 deletions

View File

@ -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);
};
}