Skip to content

Commit

Permalink
Merge pull request #357 from campbel/campbel/get-input-list-empty-test
Browse files Browse the repository at this point in the history
Add a test to define behavior when empty parameters are passed
  • Loading branch information
crazy-max committed Jun 11, 2024
2 parents bf985d0 + 82d1000 commit 1bf4b58
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 1bf4b58

Please sign in to comment.