Fixed test cases

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

No files matched your search

+6 -1
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);
};
}