Skip to content

Commit 81f044f

Browse files
committed
Fix: Add override modifiers for TypeScript compliance
1 parent e3cf780 commit 81f044f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/condense/__tests__/condense.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class MockApiHandler extends BaseProvider {
3636
}
3737
}
3838

39-
async countTokens(content: Array<Anthropic.Messages.ContentBlockParam>): Promise<number> {
39+
override async countTokens(content: Array<Anthropic.Messages.ContentBlockParam>): Promise<number> {
4040
// Simple token counting for testing
4141
let tokens = 0
4242
for (const block of content) {
@@ -176,7 +176,7 @@ describe("Condense", () => {
176176
it("should handle empty summary from API gracefully", async () => {
177177
// Mock handler that returns empty summary
178178
class EmptyMockApiHandler extends MockApiHandler {
179-
createMessage(): any {
179+
override createMessage(): any {
180180
const mockStream = {
181181
async *[Symbol.asyncIterator]() {
182182
yield { type: "text", text: "" }

0 commit comments

Comments
 (0)