Add a test to define behavior when empty parameters are passed

Signed-off-by: Chris Campbell <chris.campbell@dutchie.com>
This commit is contained in:
Chris Campbell 2024-06-11 15:24:35 -06:00
parent bf985d0056
commit 82d10009f7

View File

@ -31,6 +31,12 @@ describe('getInputList', () => {
expect(res).toEqual(['bar']); expect(res).toEqual(['bar']);
}); });
it('empty correctly', async () => {
setInput('foo', '');
const res = Util.getInputList('foo');
expect(res).toEqual([]);
});
it('multiline correctly', async () => { it('multiline correctly', async () => {
setInput('foo', 'bar\nbaz'); setInput('foo', 'bar\nbaz');
const res = Util.getInputList('foo'); const res = Util.getInputList('foo');