From 82d10009f7ef2d4d6e71c93e174022bb86cb249c Mon Sep 17 00:00:00 2001 From: Chris Campbell Date: Tue, 11 Jun 2024 15:24:35 -0600 Subject: [PATCH] Add a test to define behavior when empty parameters are passed Signed-off-by: Chris Campbell --- __tests__/util.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/__tests__/util.test.ts b/__tests__/util.test.ts index aa3d941..e0cf658 100644 --- a/__tests__/util.test.ts +++ b/__tests__/util.test.ts @@ -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');