Add tests, getInput should be case-insensitive and trim output
This commit is contained in:
1 parent
6f516e7045
commit
43a9421444
3 files changed
+4
-4
No files matched your search
@@ -20,7 +20,7 @@ describe('@actions/core', () => {
|
||||
});
|
||||
|
||||
it('getInput throws on missing required input', () => {
|
||||
expect(() => core.getInput('missing', {required: true})).toThrow('Failed to find input missing');
|
||||
expect(() => core.getInput('missing', {required: true})).toThrow('Input required and not supplied: missing');
|
||||
});
|
||||
|
||||
it('getInput doesnt throw on missing non-required input', () => {
|
||||
|
||||
Reference in new issue
Block a user