Add tests, getInput should be case-insensitive and trim output

This commit is contained in:
Danny McCormick
2019-05-17 10:31:07 -04:00
parent 7c079ef90d
commit 5f31b6acfc
3 changed files with 4 additions and 4 deletions

View File

@@ -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', () => {