From 8e049df18c922dedf56f60869d75dbac17f5a655 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20P=C3=B6hls?= Date: Mon, 29 Apr 2024 06:30:53 +0200 Subject: [PATCH] test iterator with spread --- test/arr.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/arr.js b/test/arr.js index 89c4b69..2451357 100644 --- a/test/arr.js +++ b/test/arr.js @@ -828,6 +828,10 @@ test.skip('for in', () => { }) test('Symbol.iterator', () => { + expect([ + ...Arr.from([1, 2, 3, 4]) + ]).toEqual([1, 2, 3, 4]) + const arr = Arr.from([1, 2, 3, 4]) const iterator = arr[Symbol.iterator]()