From 047f0d3b70c7ab1ef7e1a011a57d0029d742b6cc Mon Sep 17 00:00:00 2001 From: Codex Date: Mon, 1 Jun 2026 01:25:25 +0900 Subject: [PATCH] style(discord): apply prettier reflow to chunker tests Follow-up to 6505971: the pre-commit prettier hook rewrapped the new import and an Array.from() call after the commit landed, leaving the working tree dirty. Commit the reflow so the tree is clean. --- src/channels/discord.test.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/channels/discord.test.ts b/src/channels/discord.test.ts index 35eb370..048b486 100644 --- a/src/channels/discord.test.ts +++ b/src/channels/discord.test.ts @@ -124,7 +124,11 @@ vi.mock('discord.js', () => { }; }); -import { DiscordChannel, DiscordChannelOpts, chunkForDiscord } from './discord.js'; +import { + DiscordChannel, + DiscordChannelOpts, + chunkForDiscord, +} from './discord.js'; import { registerChannel } from './registry.js'; import { getEnv } from '../env.js'; import { logger } from '../logger.js'; @@ -1153,8 +1157,10 @@ describe('chunkForDiscord', () => { }); it('preserves total content across chunk seams (modulo reopen overhead)', () => { - const code = - Array.from({ length: 80 }, (_, i) => `console.log(${i});`).join('\n'); + const code = Array.from( + { length: 80 }, + (_, i) => `console.log(${i});`, + ).join('\n'); const text = '```js\n' + code + '\n```'; const chunks = chunkForDiscord(text, 300); // After removing the reopen-close fence pairs that the chunker inserts