aboutsummaryrefslogtreecommitdiffstats
path: root/test/jsUtils.test.ts
diff options
context:
space:
mode:
authorLibravatar MCMXC <16797721+mcmxcdev@users.noreply.github.com>2023-07-30 10:55:59 -0600
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2023-07-30 23:57:51 +0000
commit080d8b05297f3f5afcf33354a40a5201697b1df5 (patch)
tree35180bd3cb9fcd137feca3fe169032cbbb469463 /test/jsUtils.test.ts
parentrefactor: various improvements (#1296) (diff)
downloadferdium-app-080d8b05297f3f5afcf33354a40a5201697b1df5.tar.gz
ferdium-app-080d8b05297f3f5afcf33354a40a5201697b1df5.tar.zst
ferdium-app-080d8b05297f3f5afcf33354a40a5201697b1df5.zip
refactor: more lint improvements
- set parserOptions.ecmaVersion to latest and env to es2024 in eslint config - install missing types libraries - install eslint-plugin-sonar - enable eslint-plugin-sonar recommended rules and declare jsx-runtime for react in eslint config - clean up disabled lint rules which don't inflict problems anymore - disable various lint issues and fix others
Diffstat (limited to 'test/jsUtils.test.ts')
-rw-r--r--test/jsUtils.test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/jsUtils.test.ts b/test/jsUtils.test.ts
index 73b36d990..138158611 100644
--- a/test/jsUtils.test.ts
+++ b/test/jsUtils.test.ts
@@ -54,7 +54,7 @@ describe('jsUtils', () => {
54 54
55 describe('convertToJSON', () => { 55 describe('convertToJSON', () => {
56 it('returns undefined for undefined input', () => { 56 it('returns undefined for undefined input', () => {
57 const result = jsUtils.convertToJSON(undefined); 57 const result = jsUtils.convertToJSON();
58 expect(result).toEqual(undefined); 58 expect(result).toEqual(undefined);
59 }); 59 });
60 60
@@ -80,7 +80,7 @@ describe('jsUtils', () => {
80 describe('cleanseJSObject', () => { 80 describe('cleanseJSObject', () => {
81 // eslint-disable-next-line jest/no-disabled-tests 81 // eslint-disable-next-line jest/no-disabled-tests
82 it.skip('throws error for undefined input', () => { 82 it.skip('throws error for undefined input', () => {
83 const result = jsUtils.cleanseJSObject(undefined); 83 const result = jsUtils.cleanseJSObject();
84 expect(result).toThrow(); 84 expect(result).toThrow();
85 }); 85 });
86 86
@@ -110,7 +110,7 @@ describe('jsUtils', () => {
110 110
111 describe('safeParseInt', () => { 111 describe('safeParseInt', () => {
112 it('returns zero for undefined', () => { 112 it('returns zero for undefined', () => {
113 expect(jsUtils.safeParseInt(undefined)).toEqual(0); 113 expect(jsUtils.safeParseInt()).toEqual(0);
114 }); 114 });
115 115
116 it('returns zero for null', () => { 116 it('returns zero for null', () => {