From 6e6b068ae2adc8c5ef8acb633dcadfbdc3221b61 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Wed, 11 Jun 2025 12:39:28 -0400 Subject: tools/reformat --- ui/lib/iterator.test.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'ui/lib/iterator.test.js') diff --git a/ui/lib/iterator.test.js b/ui/lib/iterator.test.js index 4c55358..2189da1 100644 --- a/ui/lib/iterator.test.js +++ b/ui/lib/iterator.test.js @@ -25,7 +25,7 @@ describe('chunkBy', async () => { const chunks = iter.chunkBy( [], (val) => val, - (last, next) => last === next + (last, next) => last === next, ); expect(Array.from(chunks)).toStrictEqual([]); @@ -35,7 +35,7 @@ describe('chunkBy', async () => { const chunks = iter.chunkBy( [37], (val) => val, - (last, next) => last === next + (last, next) => last === next, ); expect(Array.from(chunks)).toStrictEqual([{ key: 37, chunk: [37] }]); @@ -45,7 +45,7 @@ describe('chunkBy', async () => { const chunks = iter.chunkBy( [37, 37, 28, 37], (val) => val, - (last, next) => last === next + (last, next) => last === next, ); expect(Array.from(chunks)).toStrictEqual([ @@ -53,8 +53,8 @@ describe('chunkBy', async () => { { key: 28, chunk: [28] }, { key: 37, - chunk: [37] - } + chunk: [37], + }, ]); }); }); @@ -64,13 +64,13 @@ describe('chunkBy', async () => { const chunks = iter.chunkBy( [37, 37, 28, 37], (val) => val >> 1, - (last, next) => last === next + (last, next) => last === next, ); expect(Array.from(chunks)).toStrictEqual([ { key: 18, chunk: [37, 37] }, { key: 14, chunk: [28] }, - { key: 18, chunk: [37] } + { key: 18, chunk: [37] }, ]); }); }); @@ -80,13 +80,13 @@ describe('chunkBy', async () => { const chunks = iter.chunkBy( [36, 37, 28, 29, 30, 38], (val) => val, - (last, next) => last + 1 === next + (last, next) => last + 1 === next, ); expect(Array.from(chunks)).toStrictEqual([ { key: 37, chunk: [36, 37] }, { key: 30, chunk: [28, 29, 30] }, - { key: 38, chunk: [38] } + { key: 38, chunk: [38] }, ]); }); }); -- cgit v1.2.3