@@ -38,6 +38,7 @@ describe("Elicitation Integration Tests", () => {
3838 expect ( mockElicitInput . mock ) . toHaveBeenCalledWith ( {
3939 message : expect . stringContaining ( "You are about to drop the `test-db` database" ) ,
4040 requestedSchema : Elicitation . CONFIRMATION_SCHEMA ,
41+ mode : "form" ,
4142 } ) ;
4243
4344 // Should attempt to execute (will fail due to no connection, but confirms flow worked)
@@ -82,6 +83,7 @@ describe("Elicitation Integration Tests", () => {
8283 expect ( mockElicitInput . mock ) . toHaveBeenCalledWith ( {
8384 message : expect . stringContaining ( "You are about to drop the `test-collection` collection" ) ,
8485 requestedSchema : expect . objectContaining ( Elicitation . CONFIRMATION_SCHEMA ) ,
86+ mode : "form" ,
8587 } ) ;
8688 } ) ;
8789
@@ -101,6 +103,7 @@ describe("Elicitation Integration Tests", () => {
101103 expect ( mockElicitInput . mock ) . toHaveBeenCalledWith ( {
102104 message : expect . stringContaining ( "You are about to delete documents" ) ,
103105 requestedSchema : expect . objectContaining ( Elicitation . CONFIRMATION_SCHEMA ) ,
106+ mode : "form" ,
104107 } ) ;
105108 } ) ;
106109
@@ -120,6 +123,7 @@ describe("Elicitation Integration Tests", () => {
120123 expect ( mockElicitInput . mock ) . toHaveBeenCalledWith ( {
121124 message : expect . stringContaining ( "You are about to create a database user" ) ,
122125 requestedSchema : expect . objectContaining ( Elicitation . CONFIRMATION_SCHEMA ) ,
126+ mode : "form" ,
123127 } ) ;
124128 } ) ;
125129
@@ -140,6 +144,7 @@ describe("Elicitation Integration Tests", () => {
140144 "You are about to add the following entries to the access list"
141145 ) ,
142146 requestedSchema : expect . objectContaining ( Elicitation . CONFIRMATION_SCHEMA ) ,
147+ mode : "form" ,
143148 } ) ;
144149 } ) ;
145150 } ) ;
@@ -222,6 +227,7 @@ describe("Elicitation Integration Tests", () => {
222227 / Y o u a r e a b o u t t o e x e c u t e t h e ` l i s t - d a t a b a s e s ` t o o l w h i c h r e q u i r e s a d d i t i o n a l c o n f i r m a t i o n . W o u l d y o u l i k e t o p r o c e e d \? /
223228 ) ,
224229 requestedSchema : expect . objectContaining ( Elicitation . CONFIRMATION_SCHEMA ) ,
230+ mode : "form" ,
225231 } ) ;
226232 } ) ;
227233
@@ -265,6 +271,7 @@ describe("Elicitation Integration Tests", () => {
265271 expect ( mockElicitInput . mock ) . toHaveBeenCalledWith ( {
266272 message : expect . stringMatching ( / p r o j e c t .* 5 0 7 f 1 f 7 7 b c f 8 6 c d 7 9 9 4 3 9 0 1 1 / ) ,
267273 requestedSchema : expect . objectContaining ( Elicitation . CONFIRMATION_SCHEMA ) ,
274+ mode : "form" ,
268275 } ) ;
269276 } ) ;
270277
@@ -283,6 +290,7 @@ describe("Elicitation Integration Tests", () => {
283290 expect ( mockElicitInput . mock ) . toHaveBeenCalledWith ( {
284291 message : expect . stringMatching ( / m y d b .* d a t a b a s e / ) ,
285292 requestedSchema : expect . objectContaining ( Elicitation . CONFIRMATION_SCHEMA ) ,
293+ mode : "form" ,
286294 } ) ;
287295 } ) ;
288296 } ,
0 commit comments