Skip to content

Commit 82d1000

Browse files
committed
Add a test to define behavior when empty parameters are passed
Signed-off-by: Chris Campbell <chris.campbell@dutchie.com>
1 parent bf985d0 commit 82d1000

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

__tests__/util.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ describe('getInputList', () => {
3131
expect(res).toEqual(['bar']);
3232
});
3333

34+
it('empty correctly', async () => {
35+
setInput('foo', '');
36+
const res = Util.getInputList('foo');
37+
expect(res).toEqual([]);
38+
});
39+
3440
it('multiline correctly', async () => {
3541
setInput('foo', 'bar\nbaz');
3642
const res = Util.getInputList('foo');

0 commit comments

Comments
 (0)