ripple 0.2.48 → 0.2.49

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.
@@ -1,5 +1,5 @@
1
1
  import { describe, it, expect, beforeEach, afterEach } from 'vitest';
2
- import { mount, flushSync, track } from 'ripple';
2
+ import { mount, flushSync, track, RippleArray } from 'ripple';
3
3
 
4
4
  describe('composite components', () => {
5
5
  let container;
@@ -284,4 +284,15 @@ describe('composite components', () => {
284
284
  expect(container.querySelectorAll('div')[0].textContent).toBe('');
285
285
  expect(container.querySelectorAll('div')[1].textContent).toBe('123');
286
286
  });
287
+
288
+ it('handlers generic', () => {
289
+ component ArrayTest() {
290
+ let items = new RippleArray<number>();
291
+ items.push.apply(items, [1, 2, 3, 4, 5]);
292
+
293
+ <pre>{items ? JSON.stringify(items) : 'Loading...'}</pre>
294
+ }
295
+
296
+ render(ArrayTest);
297
+ });
287
298
  });