mirror of
https://github.com/docker/actions-toolkit.git
synced 2024-11-23 03:16:09 +08:00
Add a test to define behavior when empty parameters are passed
Signed-off-by: Chris Campbell <chris.campbell@dutchie.com>
This commit is contained in:
parent
bf985d0056
commit
82d10009f7
@ -31,6 +31,12 @@ describe('getInputList', () => {
|
||||
expect(res).toEqual(['bar']);
|
||||
});
|
||||
|
||||
it('empty correctly', async () => {
|
||||
setInput('foo', '');
|
||||
const res = Util.getInputList('foo');
|
||||
expect(res).toEqual([]);
|
||||
});
|
||||
|
||||
it('multiline correctly', async () => {
|
||||
setInput('foo', 'bar\nbaz');
|
||||
const res = Util.getInputList('foo');
|
||||
|
Loading…
Reference in New Issue
Block a user