chore(lint): burn down remaining warnings to zero

This commit is contained in:
William Valentin
2026-02-15 23:14:21 -08:00
parent 49b752e8b0
commit 948d4ac6d8
67 changed files with 235 additions and 256 deletions
+8 -3
View File
@@ -1,6 +1,5 @@
import { describe, it, expect } from 'vitest';
import { chunkText } from './chunker.js';
import type { Chunk } from './chunker.js';
describe('chunkText', () => {
it('returns empty array for empty content', () => {
@@ -50,12 +49,18 @@ describe('chunkText', () => {
// Line three is on actual line 3
const lineThreeChunk = chunks.find((c) => c.text.includes('Line three'));
expect(lineThreeChunk).toBeDefined();
expect(lineThreeChunk!.startLine).toBe(3);
if (!lineThreeChunk) {
throw new Error('Expected chunk containing Line three');
}
expect(lineThreeChunk.startLine).toBe(3);
// Line five is on actual line 5
const lineFiveChunk = chunks.find((c) => c.text.includes('Line five'));
expect(lineFiveChunk).toBeDefined();
expect(lineFiveChunk!.startLine).toBe(5);
if (!lineFiveChunk) {
throw new Error('Expected chunk containing Line five');
}
expect(lineFiveChunk.startLine).toBe(5);
});
it('includes overlap between consecutive chunks', () => {