start with events

This commit is contained in:
Rene
2022-06-23 11:21:25 +02:00
parent 0a3eac283f
commit 0585e40572
13 changed files with 381 additions and 50 deletions
@@ -278,6 +278,15 @@ describe('array utilities', () => {
expect(fromChildNodes).toEqual(Array.from(document.body.childNodes));
document.body.innerHTML = '';
});
test('fallback with Set', () => {
const arrFrom = Array.from;
// @ts-ignore
Array.from = undefined;
const fromResult = from(new Set([1, 2, 3]));
Array.from = arrFrom;
expect(fromResult).toEqual([1, 2, 3]);
});
});
describe('runEach', () => {