Skip to content

Commit c46fcee

Browse files
test: Add test to ensure null setting strings are handled properly (#1069)
1 parent 9235483 commit c46fcee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/jest/utils.spec.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,11 @@ describe('Utils', () => {
345345
{ jsmap: '-355458063', map: '5878452521714063084', maptype: 'EventClass.Id', value: 'card_viewed_test' },
346346
]);
347347
});
348+
349+
it('returns an empty array if the settings string is null', () => {
350+
const settingsString = null;
351+
expect(parseSettingsString(settingsString)).toEqual([]);
352+
});
348353

349354
it('returns an empty array if the settings string is empty', () => {
350355
const settingsString = "";

0 commit comments

Comments
 (0)