File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,16 +112,18 @@ describe("Session RPC", async () => {
112112 expect ( initial ) . toBe ( "interactive" ) ;
113113
114114 // Switch to plan mode
115- const planResult = await session . rpc . mode . set ( { mode : "plan" } ) ;
116- expect ( planResult ) . toBe ( "plan" ) ;
115+ await session . rpc . mode . set ( { mode : "plan" } ) ;
117116
118117 // Verify mode persisted
119118 const afterPlan = await session . rpc . mode . get ( ) ;
120119 expect ( afterPlan ) . toBe ( "plan" ) ;
121120
122121 // Switch back to interactive
123- const interactiveResult = await session . rpc . mode . set ( { mode : "interactive" } ) ;
124- expect ( interactiveResult ) . toBe ( "interactive" ) ;
122+ await session . rpc . mode . set ( { mode : "interactive" } ) ;
123+
124+ // Verify switch back
125+ const afterInteractive = await session . rpc . mode . get ( ) ;
126+ expect ( afterInteractive ) . toBe ( "interactive" ) ;
125127 } ) ;
126128
127129 it ( "should read, update, and delete plan" , async ( ) => {
You can’t perform that action at this time.
0 commit comments