summaryrefslogtreecommitdiff
path: root/ui/lib/iterator.test.js
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2025-06-11 12:39:28 -0400
committerOwen Jacobson <owen@grimoire.ca>2025-06-11 12:39:28 -0400
commit6e6b068ae2adc8c5ef8acb633dcadfbdc3221b61 (patch)
tree79831028416b0d6934f32961a3fc77d8b004369e /ui/lib/iterator.test.js
parent1f009e06fd6db82a91536eec88ef3232267385bf (diff)
tools/reformat
Diffstat (limited to 'ui/lib/iterator.test.js')
-rw-r--r--ui/lib/iterator.test.js18
1 files changed, 9 insertions, 9 deletions
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] },
]);
});
});