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:
parent
32326ebf1e
commit
dd053ba124
1 changed files with 18 additions and 0 deletions
|
|
@ -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,
|
||||
},
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue