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.
This commit is contained in:
@@ -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 { registerChannel } from './registry.js';
|
||||||
import { getEnv } from '../env.js';
|
import { getEnv } from '../env.js';
|
||||||
import { logger } from '../logger.js';
|
import { logger } from '../logger.js';
|
||||||
@@ -1153,8 +1157,10 @@ describe('chunkForDiscord', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('preserves total content across chunk seams (modulo reopen overhead)', () => {
|
it('preserves total content across chunk seams (modulo reopen overhead)', () => {
|
||||||
const code =
|
const code = Array.from(
|
||||||
Array.from({ length: 80 }, (_, i) => `console.log(${i});`).join('\n');
|
{ length: 80 },
|
||||||
|
(_, i) => `console.log(${i});`,
|
||||||
|
).join('\n');
|
||||||
const text = '```js\n' + code + '\n```';
|
const text = '```js\n' + code + '\n```';
|
||||||
const chunks = chunkForDiscord(text, 300);
|
const chunks = chunkForDiscord(text, 300);
|
||||||
// After removing the reopen-close fence pairs that the chunker inserts
|
// After removing the reopen-close fence pairs that the chunker inserts
|
||||||
|
|||||||
Reference in New Issue
Block a user