From d5d685aaf4e796faf612c6d0fea0f0cc9ea49614 Mon Sep 17 00:00:00 2001 From: Ricardo Cino Date: Mon, 28 Nov 2022 16:53:04 +0100 Subject: fix: ensure default values are working for the all fields in all settings screens (#750) Co-authored-by: Vijay A --- test/jsUtils.test.ts | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'test') diff --git a/test/jsUtils.test.ts b/test/jsUtils.test.ts index 406326d4b..a8de4475c 100644 --- a/test/jsUtils.test.ts +++ b/test/jsUtils.test.ts @@ -1,23 +1,6 @@ import * as jsUtils from '../src/jsUtils'; describe('jsUtils', () => { - describe('ifUndefinedString', () => { - it('returns the default value for undefined input', () => { - const result = jsUtils.ifUndefinedString(undefined, 'abc'); - expect(result).toEqual('abc'); - }); - - it('returns the default value for null input', () => { - const result = jsUtils.ifUndefinedString(null, 'abc'); - expect(result).toEqual('abc'); - }); - - it('returns the non-default input value for regular string input', () => { - const result = jsUtils.ifUndefinedString('some random string', 'abc'); - expect(result).toEqual('some random string'); - }); - }); - describe('ifUndefined', () => { it('returns the default value for undefined input', () => { const result = jsUtils.ifUndefined(undefined, 'abc'); -- cgit v1.2.3-70-g09d2