fix(test): update EventState inline literal to use createEventState() spread
EventState interface gained new required fields; the inline literal in the session.status test was missing them, causing type errors and runtime failures.
This commit is contained in:
parent
ad79246376
commit
8d66ab742b
@ -318,14 +318,8 @@ describe("event handling", () => {
|
|||||||
// given
|
// given
|
||||||
const ctx = createMockContext("my-session")
|
const ctx = createMockContext("my-session")
|
||||||
const state: EventState = {
|
const state: EventState = {
|
||||||
|
...createEventState(),
|
||||||
mainSessionIdle: true,
|
mainSessionIdle: true,
|
||||||
mainSessionError: false,
|
|
||||||
lastError: null,
|
|
||||||
lastOutput: "",
|
|
||||||
lastPartText: "",
|
|
||||||
currentTool: null,
|
|
||||||
hasReceivedMeaningfulWork: false,
|
|
||||||
messageCount: 0,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const payload: EventPayload = {
|
const payload: EventPayload = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user