sdc_client 0.57.12 → 0.57.15

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.
package/test/dist.test.js CHANGED
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
 
6
- import {app, AbstractSDC, setEvent, on, allOff, trigger} from '../dist/index.js';
6
+ import {app, AbstractSDC, setEvent, on, allOff, trigger} from '../src/index.js';
7
7
  import * as sdc_view from '../src/simpleDomControl/sdc_view.js';
8
8
 
9
9
 
package/test/view.test.js CHANGED
@@ -79,6 +79,23 @@ describe('Test reconcile', () => {
79
79
 
80
80
  });
81
81
 
82
+ test('Load content 3', () => {
83
+ const a = '<div>' +
84
+ '<div><p>A1</p><p>B1</p></div>' +
85
+ '<div><p>A2</p><p>B2</p></div>' +
86
+ '</div>';
87
+
88
+ const b = '<div>' +
89
+ '<div><p>A2</p><p>B3</p></div>' +
90
+ '<div><p>A2</p><p>B4</p></div>' +
91
+ '</div>';
92
+ const $b = $(b);
93
+ const $a = $(a);
94
+ reconcile($b, $a);
95
+ expect($a.html()).toBe($(b).html());
96
+
97
+ });
98
+
82
99
 
83
100
  test('Load Content Split', async () => {
84
101
  const a = '<div>' +
@@ -133,7 +150,7 @@ describe('Controller reconcile', () => {
133
150
  const newList = $('body').find('input').toArray();
134
151
  expect(newList.length).toBe(5);
135
152
  newList.forEach((x, i) => {
136
- expect(x).toBe(oldList[i]);
153
+ expect(x).toBe(oldList[i]);
137
154
  });
138
155
 
139
156