test: remove duplicate compaction fallback coverage
This commit is contained in:
parent
3cf454f7ea
commit
b626ee75ae
@ -1480,7 +1480,7 @@ describe("compaction-safeguard extension model fallback", () => {
|
||||
expect(retrieved?.model).toEqual(model);
|
||||
});
|
||||
|
||||
it("cancels compaction when both ctx.model and runtime.model are undefined", async () => {
|
||||
it("falls back to built-in compaction when both ctx.model and runtime.model are undefined", async () => {
|
||||
const sessionManager = stubSessionManager();
|
||||
|
||||
// Do NOT set runtime.model (both ctx.model and runtime.model will be undefined)
|
||||
@ -1501,19 +1501,6 @@ describe("compaction-safeguard extension model fallback", () => {
|
||||
expect(getApiKeyMock).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("falls back to built-in compaction when model is undefined (returns undefined, not cancel)", async () => {
|
||||
const sessionManager = stubSessionManager();
|
||||
// Do NOT set runtime model
|
||||
const mockEvent = createCompactionEvent({ messageText: "test", tokensBefore: 500 });
|
||||
const { result, getApiKeyMock } = await runCompactionScenario({
|
||||
sessionManager,
|
||||
event: mockEvent,
|
||||
apiKey: null,
|
||||
});
|
||||
expect(result).toBeUndefined();
|
||||
expect(getApiKeyMock).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("falls back to built-in compaction when API key is missing (returns undefined, not cancel)", async () => {
|
||||
const sessionManager = stubSessionManager();
|
||||
const model = createAnthropicModelFixture();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user