test: Update session tests to include usage field
Added usage field expectations to session creation tests to match the new session structure that includes cost tracking. Co-authored-by: nate <nate@continue.dev>
This commit is contained in:
@@ -82,6 +82,15 @@ describe("SessionManager", () => {
|
||||
title: "Untitled Session",
|
||||
workspaceDirectory: process.cwd(),
|
||||
history: [],
|
||||
usage: {
|
||||
promptTokens: 0,
|
||||
completionTokens: 0,
|
||||
totalCost: 0,
|
||||
promptTokensDetails: {
|
||||
cachedTokens: 0,
|
||||
cacheWriteTokens: 0,
|
||||
},
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
@@ -102,6 +111,15 @@ describe("SessionManager", () => {
|
||||
title: "Untitled Session",
|
||||
workspaceDirectory: process.cwd(),
|
||||
history: [],
|
||||
usage: {
|
||||
promptTokens: 0,
|
||||
completionTokens: 0,
|
||||
totalCost: 0,
|
||||
promptTokensDetails: {
|
||||
cachedTokens: 0,
|
||||
cacheWriteTokens: 0,
|
||||
},
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user