Skip to content

Commit 1bf4b58

Browse files
authored
Merge pull request #357 from campbel/campbel/get-input-list-empty-test
Add a test to define behavior when empty parameters are passed
2 parents bf985d0 + 82d1000 commit 1bf4b58

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)