fix lint.

This commit is contained in:
Tingluo Huang
2019-09-19 22:18:51 -04:00
parent 4d15218252
commit 81b71dc6e6
2 changed files with 6 additions and 6 deletions

View File

@@ -96,17 +96,17 @@ describe('@actions/core', () => {
})
it('getInput gets required input', () => {
expect(core.getInput('my input', { required: true})).toBe('val')
expect(core.getInput('my input', {required: true})).toBe('val')
})
it('getInput throws on missing required input', () => {
expect(() => core.getInput('missing', { required: true})).toThrow(
expect(() => core.getInput('missing', {required: true})).toThrow(
'Input required and not supplied: missing'
)
})
it('getInput does not throw on missing non-required input', () => {
expect(core.getInput('missing', { required: false})).toBe('')
expect(core.getInput('missing', {required: false})).toBe('')
})
it('getInput is case insensitive', () => {