summaryrefslogtreecommitdiffstats
path: root/test/jsUtils.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/jsUtils.test.ts')
-rw-r--r--test/jsUtils.test.ts17
1 files changed, 0 insertions, 17 deletions
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 @@
1import * as jsUtils from '../src/jsUtils'; 1import * as jsUtils from '../src/jsUtils';
2 2
3describe('jsUtils', () => { 3describe('jsUtils', () => {
4 describe('ifUndefinedString', () => {
5 it('returns the default value for undefined input', () => {
6 const result = jsUtils.ifUndefinedString(undefined, 'abc');
7 expect(result).toEqual('abc');
8 });
9
10 it('returns the default value for null input', () => {
11 const result = jsUtils.ifUndefinedString(null, 'abc');
12 expect(result).toEqual('abc');
13 });
14
15 it('returns the non-default input value for regular string input', () => {
16 const result = jsUtils.ifUndefinedString('some random string', 'abc');
17 expect(result).toEqual('some random string');
18 });
19 });
20
21 describe('ifUndefined<string>', () => { 4 describe('ifUndefined<string>', () => {
22 it('returns the default value for undefined input', () => { 5 it('returns the default value for undefined input', () => {
23 const result = jsUtils.ifUndefined<string>(undefined, 'abc'); 6 const result = jsUtils.ifUndefined<string>(undefined, 'abc');