Merge pull request #357 from campbel/campbel/get-input-list-empty-test

Add a test to define behavior when empty parameters are passed
This commit is contained in:
CrazyMax
2024-06-11 23:49:31 +02:00
committed by GitHub

View File

@@ -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');