Skip to content

Commit

Permalink
Add a test to define behavior when empty parameters are passed
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Campbell <chris.campbell@dutchie.com>
  • Loading branch information
campbel committed Jun 11, 2024
1 parent bf985d0 commit 82d1000
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions __tests__/util.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 82d1000

Please sign in to comment.