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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 47 additions and 13 deletions

View file

@ -9413,9 +9413,14 @@ class NullStateProvider extends StateProviderBase {
[constants_1.State.CachePrimaryKey, constants_1.Outputs.CachePrimaryKey]
]);
this.setState = (key, value) => {
core.setOutput(this.stateToOutputMap.get(key), value);
if (this.stateToOutputMap.has(key)) {
core.setOutput(this.stateToOutputMap.get(key), value);
}
};
this.getState = (key) => {
if (!this.stateToInputMap.has(key)) {
return "";
}
return core.getInput(this.stateToInputMap.get(key));
};
}