mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-16 05:48:04 +08:00
Add tests, getInput should be case-insensitive and trim output
This commit is contained in:
@@ -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