chore(lint): burn down remaining warnings to zero
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user