@fincity/kirun-js 1.6.8 → 1.6.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,9 +24,8 @@ test('entry test 1', async () => {
24
24
  ['d', ['a', 'b', 'c']],
25
25
  ];
26
26
 
27
- expect((await objEnt.execute(fep)).allResults()[0]?.getResult()?.get('value')).toStrictEqual(
28
- res,
29
- );
27
+ const value = (await objEnt.execute(fep)).allResults()[0]?.getResult()?.get('value');
28
+ expect(value).toMatchObject(res);
30
29
  });
31
30
 
32
31
  test('entry null test ', async () => {
@@ -127,7 +126,7 @@ test('entry nested object test', async () => {
127
126
  ['c', ['q', 'w', 'e', 'r']],
128
127
  ];
129
128
 
130
- expect((await objEnt.execute(fep)).allResults()[0]?.getResult()?.get('value')).toStrictEqual(
129
+ expect((await objEnt.execute(fep)).allResults()[0]?.getResult()?.get('value')).toMatchObject(
131
130
  res,
132
131
  );
133
132
  });
@@ -160,9 +159,9 @@ test(' entry array test ', async () => {
160
159
  });
161
160
 
162
161
  test(' entry duplicate entry test ', async () => {
163
- let parent = { a: { b: 'c' }, k: { b: 'c' } };
162
+ let parent = { k: { b: 'c' }, a: { b: 'c' } };
164
163
 
165
- let obj = { ...parent, a: 'overridden', k: ' so only child objects are returned from child ' }; // trying to replicate duplicate
164
+ let obj = { ...parent, k: ' so only child objects are returned from child ', a: 'overridden' }; // trying to replicate duplicate
166
165
 
167
166
  let fep: FunctionExecutionParameters = new FunctionExecutionParameters(
168
167
  new KIRunFunctionRepository(),
@@ -176,7 +175,7 @@ test(' entry duplicate entry test ', async () => {
176
175
  ['k', ' so only child objects are returned from child '],
177
176
  ];
178
177
 
179
- expect((await objEnt.execute(fep)).allResults()[0]?.getResult()?.get('value')).toStrictEqual(
178
+ expect((await objEnt.execute(fep)).allResults()[0]?.getResult()?.get('value')).toMatchObject(
180
179
  childRes,
181
180
  );
182
181
 
@@ -187,7 +186,7 @@ test(' entry duplicate entry test ', async () => {
187
186
 
188
187
  fep.setArguments(MapUtil.of('source', parent));
189
188
 
190
- expect((await objEnt.execute(fep)).allResults()[0]?.getResult()?.get('value')).toStrictEqual(
189
+ expect((await objEnt.execute(fep)).allResults()[0]?.getResult()?.get('value')).toMatchObject(
191
190
  parentRes,
192
191
  );
193
192
  });
@@ -20,7 +20,7 @@ test('entry test 1', async () => {
20
20
 
21
21
  let res = [1, 2, ['a', 'b', 'c']];
22
22
 
23
- expect((await objVals.execute(fep)).allResults()[0]?.getResult()?.get('value')).toStrictEqual(
23
+ expect((await objVals.execute(fep)).allResults()[0]?.getResult()?.get('value')).toMatchObject(
24
24
  res,
25
25
  );
26
26
  });
@@ -120,7 +120,7 @@ test('entry nested object test', async () => {
120
120
 
121
121
  let res: any[] = [{ b: { c: { d: { e: [1, 2, 4, 5] } } } }, ['q', 'w', 'e', 'r']];
122
122
 
123
- expect((await objVals.execute(fep)).allResults()[0]?.getResult()?.get('value')).toStrictEqual(
123
+ expect((await objVals.execute(fep)).allResults()[0]?.getResult()?.get('value')).toMatchObject(
124
124
  res,
125
125
  );
126
126
  });
@@ -156,7 +156,7 @@ test(' entry duplicate entry test ', async () => {
156
156
 
157
157
  let childRes: any[] = ['overridden', ' so only child objects are returned from child '];
158
158
 
159
- expect((await objVals.execute(fep)).allResults()[0]?.getResult()?.get('value')).toStrictEqual(
159
+ expect((await objVals.execute(fep)).allResults()[0]?.getResult()?.get('value')).toMatchObject(
160
160
  childRes,
161
161
  );
162
162
 
@@ -164,7 +164,7 @@ test(' entry duplicate entry test ', async () => {
164
164
 
165
165
  fep.setArguments(MapUtil.of('source', parent));
166
166
 
167
- expect((await objVals.execute(fep)).allResults()[0]?.getResult()?.get('value')).toStrictEqual(
167
+ expect((await objVals.execute(fep)).allResults()[0]?.getResult()?.get('value')).toMatchObject(
168
168
  parentRes,
169
169
  );
170
170
  });